YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
AudioRecorderServerImpl.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023-2023 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6#ifndef YARP_DEV_AUDIORECORDERSERVERIMPL_H
7#define YARP_DEV_AUDIORECORDERSERVERIMPL_H
8
9#include "IAudioGrabberMsgs.h"
12#include <yarp/os/Stamp.h>
13
15{
16 private:
17 yarp::dev::IAudioGrabberSound* m_igrab = nullptr;
18 std::mutex m_mutex;
19
20 public:
21 void setInterface(yarp::dev::IAudioGrabberSound* _iaudiograb) { m_igrab = _iaudiograb; }
22
23 virtual yarp::dev::ReturnValue setHWGain_RPC(const double gain) override;
24 virtual yarp::dev::ReturnValue setSWGain_RPC(const double gain) override;
28 virtual return_isRecording isRecording_RPC() override;
29 virtual return_getSound getSound_RPC(const size_t min_number_of_samples, const size_t max_number_of_samples, const double max_samples_timeout_s) override;
32
33 std::mutex* getMutex() {return &m_mutex;}
34};
35
36#endif // YARP_DEV_AUDIORECORDERSERVERIMPL_H
virtual return_isRecording isRecording_RPC() override
virtual return_getSound getSound_RPC(const size_t min_number_of_samples, const size_t max_number_of_samples, const double max_samples_timeout_s) override
virtual yarp::dev::ReturnValue resetRecordingAudioBuffer_RPC() override
virtual yarp::dev::ReturnValue stopRecording_RPC() override
virtual yarp::dev::ReturnValue setSWGain_RPC(const double gain) override
virtual return_getRecordingAudioBufferMaxSize getRecordingAudioBufferMaxSize_RPC() override
void setInterface(yarp::dev::IAudioGrabberSound *_iaudiograb)
virtual yarp::dev::ReturnValue setHWGain_RPC(const double gain) override
virtual yarp::dev::ReturnValue startRecording_RPC() override
virtual return_getRecordingAudioBufferCurrentSize getRecordingAudioBufferCurrentSize_RPC() override
Read a YARP-format sound block from a device.