14#ifndef YARP_DEV_AUDIORECORDERDEVICETEMPLATE_H
15#define YARP_DEV_AUDIORECORDERDEVICETEMPLATE_H
19class AudioDeviceDriverSettings
49 bool m_enable_buffer_autoclear =
false;
50 bool m_recording_enabled =
false;
53 double m_sw_gain = 1.0;
54 double m_hw_gain = 1.0;
56 bool m_audiobase_debug =
false;
57 int16_t m_cliptol = 3;
60 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;
61 virtual bool startRecording()
override;
62 virtual bool stopRecording()
override;
63 virtual bool isRecording(
bool& recording_enabled)
override;
66 virtual bool resetRecordingAudioBuffer()
override;
67 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.
For streams capable of holding different kinds of content, check what they actually have.