Interface for rendering a YARP-format sound and controlling its reproduction ona device. More...
#include <yarp/dev/IAudioRender.h>
Public Member Functions | |
virtual | ~IAudioRender () |
Destructor. | |
virtual bool | renderSound (const yarp::sig::Sound &sound)=0 |
Render a sound using a device (i.e. | |
virtual bool | startPlayback ()=0 |
Start the playback. | |
virtual bool | stopPlayback ()=0 |
Stop the playback. | |
virtual bool | isPlaying (bool &playback_enabled)=0 |
Check if the playback has been enabled (e.g. | |
virtual bool | getPlaybackAudioBufferMaxSize (yarp::sig::AudioBufferSize &size)=0 |
virtual bool | getPlaybackAudioBufferCurrentSize (yarp::sig::AudioBufferSize &size)=0 |
virtual bool | resetPlaybackAudioBuffer ()=0 |
virtual bool | setSWGain (double gain)=0 |
Sets a software gain for the played audio. | |
virtual bool | setHWGain (double gain)=0 |
Sets the hardware gain of the playback device (if supported by the hardware) | |
Interface for rendering a YARP-format sound and controlling its reproduction ona device.
Definition at line 22 of file IAudioRender.h.
|
virtualdefault |
Destructor.
|
pure virtual |
Implemented in PortAudioDeviceDriver, and yarp::dev::AudioPlayerDeviceBase.
|
pure virtual |
Implemented in PortAudioDeviceDriver, and yarp::dev::AudioPlayerDeviceBase.
|
pure virtual |
Check if the playback has been enabled (e.g.
via startPlayback()/stopPlayback())
playback_enabled | the status of the device |
Implemented in PortAudioDeviceDriver, and yarp::dev::AudioPlayerDeviceBase.
|
pure virtual |
Render a sound using a device (i.e.
send it to the speakers).
sound | the sound to be rendered |
Implemented in AudioToFileDevice, PortAudioDeviceDriver, and yarp::dev::AudioPlayerDeviceBase.
|
pure virtual |
Implemented in PortAudioDeviceDriver, and yarp::dev::AudioPlayerDeviceBase.
|
pure virtual |
Sets the hardware gain of the playback device (if supported by the hardware)
gain | the audio gain (1.0 is the default value) |
Implemented in AudioToFileDevice, FakeSpeaker, PortAudioDeviceDriver, and PortAudioPlayerDeviceDriver.
|
pure virtual |
Sets a software gain for the played audio.
gain | the audio gain (1.0 is the default value) |
Implemented in PortAudioDeviceDriver, and yarp::dev::AudioPlayerDeviceBase.
|
pure virtual |
Start the playback.
Implemented in AudioToFileDevice, PortAudioDeviceDriver, PortAudioPlayerDeviceDriver, and yarp::dev::AudioPlayerDeviceBase.
|
pure virtual |
Stop the playback.
Implemented in AudioToFileDevice, PortAudioDeviceDriver, PortAudioPlayerDeviceDriver, and yarp::dev::AudioPlayerDeviceBase.