|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
19 #define DEFAULT_PERIOD 0.01 //s
44 bool close()
override;
54 bool threadInit()
override;
57 bool m_isPlaying =
false;
59 size_t m_cfg_numSamples = 0;
60 size_t m_cfg_numChannels = 0;
61 size_t m_cfg_frequency = 0;
62 size_t m_cfg_bytesPerSample = 0;
65 bool m_renderSoundImmediate =
false;
A base class for nested structures that can be searched.
fakeSpeaker(fakeSpeaker &&)=delete
bool close() override
Close the DeviceDriver.
Interface implemented by all device drivers.
fakeSpeaker(const fakeSpeaker &)=delete
fakeSpeaker & operator=(fakeSpeaker &&)=delete
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
virtual bool resetPlaybackAudioBuffer() override
virtual bool getPlaybackAudioBufferCurrentSize(yarp::dev::AudioBufferSize &size) override
virtual bool renderSound(const yarp::sig::Sound &sound) override
Render a sound using a device (i.e.
An abstraction for a periodic thread.
virtual bool getPlaybackAudioBufferMaxSize(yarp::dev::AudioBufferSize &size) override
fakeSpeaker : fake device implementing the IAudioRender device interface to play sound
Class for storing sounds.
fakeSpeaker & operator=(const fakeSpeaker &)=delete
virtual bool stopPlayback() override
Stop the playback.
virtual bool startPlayback() override
Start the playback.