YARP
Yet Another Robot Platform
yarp::dev::IAudioRender Class Referenceabstract

#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 getPlaybackAudioBufferMaxSize (yarp::dev::AudioBufferSize &size)=0
 
virtual bool getPlaybackAudioBufferCurrentSize (yarp::dev::AudioBufferSize &size)=0
 
virtual bool resetPlaybackAudioBuffer ()=0
 

Detailed Description

Definition at line 20 of file IAudioRender.h.

Constructor & Destructor Documentation

◆ ~IAudioRender()

yarp::dev::IAudioRender::~IAudioRender ( )
virtualdefault

Destructor.

Member Function Documentation

◆ getPlaybackAudioBufferCurrentSize()

virtual bool yarp::dev::IAudioRender::getPlaybackAudioBufferCurrentSize ( yarp::dev::AudioBufferSize size)
pure virtual

◆ getPlaybackAudioBufferMaxSize()

virtual bool yarp::dev::IAudioRender::getPlaybackAudioBufferMaxSize ( yarp::dev::AudioBufferSize size)
pure virtual

◆ renderSound()

virtual bool yarp::dev::IAudioRender::renderSound ( const yarp::sig::Sound sound)
pure virtual

Render a sound using a device (i.e.

send it to the speakers).

Parameters
soundthe sound to be rendered
Returns
true/false upon success/failure

Implemented in PortAudioPlayerDeviceDriver, PortAudioDeviceDriver, fakeSpeaker, and audioToFileDevice.

◆ resetPlaybackAudioBuffer()

virtual bool yarp::dev::IAudioRender::resetPlaybackAudioBuffer ( )
pure virtual

◆ startPlayback()

virtual bool yarp::dev::IAudioRender::startPlayback ( )
pure virtual

Start the playback.

Returns
true/false upon success/failure

Implemented in PortAudioPlayerDeviceDriver, PortAudioDeviceDriver, fakeSpeaker, and audioToFileDevice.

◆ stopPlayback()

virtual bool yarp::dev::IAudioRender::stopPlayback ( )
pure virtual

Stop the playback.

Returns
true/false upon success/failure

Implemented in PortAudioPlayerDeviceDriver, PortAudioDeviceDriver, fakeSpeaker, and audioToFileDevice.


The documentation for this class was generated from the following files: