14 #ifndef YARP_DEV_AUDIOPLAYERDEVICETEMPLATE_H
15 #define YARP_DEV_AUDIOPLAYERDEVICETEMPLATE_H
53 bool m_enable_buffer_autoclear =
false;
54 bool m_playback_enabled =
false;
58 double m_sw_gain = 1.0;
59 double m_hw_gain = 1.0;
60 bool m_audiobase_debug =
false;
61 enum { RENDER_APPEND = 0, RENDER_IMMEDIATE = 1 } m_renderMode= RENDER_APPEND;
65 virtual bool startPlayback()
override;
66 virtual bool stopPlayback()
override;
67 virtual bool isPlaying(
bool& playback_enabled)
override;
70 virtual bool resetPlaybackAudioBuffer()
override;
71 virtual bool setSWGain(
double gain)
override;
78 virtual void waitUntilPlaybackStreamIsComplete();
AudioPlayerDeviceBase : a base class for all audio player devices
virtual bool configureDeviceAndStart()=0
std::recursive_mutex m_mutex
virtual bool interruptDeviceAndClose()=0
AudioDeviceDriverSettings m_audioplayer_cfg
A base class for nested structures that can be searched.
Class for storing sounds See Audio in YARP for additional documentation on YARP audio.
The main, catch-all namespace for YARP.