20 #define DEFAULT_PERIOD 0.01
42 bool close()
override;
44 virtual bool getSound(
yarp::sig::Sound& sound,
size_t min_number_of_samples,
size_t max_number_of_samples,
double max_samples_timeout_s)
override;
52 bool threadInit()
override;
59 size_t m_cfg_numSamples;
60 size_t m_cfg_numChannels;
61 size_t m_cfg_frequency;
62 size_t m_cfg_bytesPerSample;
64 std::string m_audio_filename;
67 bool m_getSoundIsNotBlocking;
fakeMicrophone : fake device implementing the IAudioGrabberSound device interface to play sound
virtual bool getSound(yarp::sig::Sound &sound, size_t min_number_of_samples, size_t max_number_of_samples, double max_samples_timeout_s) override
Get a sound from a device.
virtual bool resetRecordingAudioBuffer() override
fakeMicrophone & operator=(const fakeMicrophone &)=delete
virtual bool startRecording() override
Start the recording.
bool close() override
Close the DeviceDriver.
virtual bool getRecordingAudioBufferCurrentSize(yarp::dev::AudioBufferSize &size) override
virtual bool stopRecording() override
Stop the recording.
fakeMicrophone(fakeMicrophone &&)=delete
fakeMicrophone & operator=(fakeMicrophone &&)=delete
fakeMicrophone(const fakeMicrophone &)=delete
virtual bool getRecordingAudioBufferMaxSize(yarp::dev::AudioBufferSize &size) override
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
~fakeMicrophone() override
Interface implemented by all device drivers.
Read a YARP-format sound block from a device.
An abstraction for a periodic thread.
A base class for nested structures that can be searched.
Class for storing sounds.