14#ifndef YARP_DEV_AUDIOPLAYERDEVICETEMPLATE_H
15#define YARP_DEV_AUDIOPLAYERDEVICETEMPLATE_H
52 bool m_enable_buffer_autoclear =
false;
53 bool m_playback_enabled =
false;
57 double m_sw_gain = 1.0;
58 double m_hw_gain = 1.0;
59 bool m_audiobase_debug =
false;
60 enum { RENDER_APPEND = 0, RENDER_IMMEDIATE = 1 } m_renderMode= RENDER_APPEND;
64 virtual bool startPlayback()
override;
65 virtual bool stopPlayback()
override;
66 virtual bool isPlaying(
bool& playback_enabled)
override;
69 virtual bool resetPlaybackAudioBuffer()
override;
70 virtual bool setSWGain(
double gain)
override;
77 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.
For streams capable of holding different kinds of content, check what they actually have.