2 #ifndef GRAMODS_SOUND_OPENALCAPTURE
3 #define GRAMODS_SOUND_OPENALCAPTURE
6 #include <gmCore/io_size.hh>
8 #include <gmSound/Capture.hh>
50 bool isOpen()
override;
52 static std::vector<std::string> getCaptureDeviceNames();
54 void startCapture()
override;
55 void stopCapture()
override;
56 std::vector<float> getAvailableSamples()
override;
57 size_t getAvailableSamplesCount()
override;
65 std::unique_ptr<Impl> _impl;
The interface for a capture device that allow for extraction of sample data.
Definition: Capture.hh:16
The instantiation of this class will attempt to open a capture device and allow for extraction of sam...
Definition: OpenALCapture.hh:19
void setSampleRate(size_t f)
Sets the sample rate to attempt to open the capture device with.
Definition: OpenALCapture.cpp:69
void setChannelCount(size_t n)
Sets the number of channels to attempt to open for the capture device.
Definition: OpenALCapture.cpp:75
size_t getSampleRate() override
Returns the sample rate.
Definition: OpenALCapture.cpp:73
void initialize() override
Called to initialize the Object.
Definition: OpenALCapture.cpp:38
void setDeviceName(std::string name)
Sets the name of the capture device to open and capture from.
Definition: OpenALCapture.cpp:65
size_t getChannelCount() override
Sets the number of channels to attempt to open for the capture device.
Definition: OpenALCapture.cpp:105
Gramods, short for Graphics Modules, is a collection of weakly inter dependent and useful APIs for Vi...
Definition: config.hh:25
Definition: OpenALCapture.cpp:20