sfml 0.25.1

Rust binding for sfml
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <string>
#include <vector>
#include "SFML/Audio/SoundRecorder.hpp"

extern "C" bool sfSoundRecorder_isAvailable(void) {
    return sf::SoundRecorder::isAvailable();
}

extern "C" std::string *sfSoundRecorder_getDefaultDevice() {
    return new std::string(sf::SoundRecorder::getDefaultDevice());
}

extern "C" std::vector<std::string> *sfSoundRecorder_getAvailableDevices() {
    return new std::vector<std::string>(sf::SoundRecorder::getAvailableDevices());
}