Loading...
Searching...
No Matches
SoundRecorder.hpp
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
237 [[nodiscard]] virtual bool onProcessSamples(const std::int16_t* samples, std::size_t sampleCount) = 0;
const std::string & getDevice() const
Get the name of the current audio capture device.
const std::vector< SoundChannel > & getChannelMap() const
Get the map of position in sample frame to sound channel.
static std::vector< std::string > getAvailableDevices()
Get a list of the names of all available audio capture devices.
unsigned int getChannelCount() const
Get the number of channels used by this recorder.
virtual bool onProcessSamples(const std::int16_t *samples, std::size_t sampleCount)=0
Process a new chunk of recorded samples.
static std::string getDefaultDevice()
Get the name of the default audio capture device.
void setChannelCount(unsigned int channelCount)
Set the channel count of the audio capture device.
Definition AudioResource.hpp:36