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