14 #ifndef YARP_DEV_AUDIORECORDERDEVICETEMPLATE_H
15 #define YARP_DEV_AUDIORECORDERDEVICETEMPLATE_H
20 class AudioDeviceDriverSettings
50 bool m_enable_buffer_autoclear =
false;
51 bool m_recording_enabled =
false;
54 double m_sw_gain = 1.0;
55 double m_hw_gain = 1.0;
57 bool m_audiobase_debug =
false;
58 int16_t m_cliptol = 3;
61 virtual bool getSound(
yarp::sig::Sound& sound,
size_t min_number_of_samples,
size_t max_number_of_samples,
double max_samples_timeout_s)
override;
62 virtual bool startRecording()
override;
63 virtual bool stopRecording()
override;
64 virtual bool isRecording(
bool& recording_enabled)
override;
67 virtual bool resetRecordingAudioBuffer()
override;
68 virtual bool setSWGain(
double gain)
override;
AudioRecorderDeviceBase : a base class for all audio recorder devices
AudioDeviceDriverSettings m_audiorecorder_cfg
Read a YARP-format sound block from a device.
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.