YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FakeSpeaker.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#include <string>
11#include <yarp/sig/Sound.h>
12#include <yarp/sig/SoundFile.h>
14
16
35{
36public:
38 FakeSpeaker(const FakeSpeaker&) = delete;
42 ~FakeSpeaker() override;
43
44 // Device Driver interface
45 bool open(yarp::os::Searchable &config) override;
46 bool close() override;
47
48 //interface
49 virtual yarp::dev::ReturnValue setHWGain(double gain) override;
50 virtual bool configureDeviceAndStart() override;
51 virtual bool interruptDeviceAndClose() override;
52
53private:
54 bool threadInit() override;
55 void run() override;
56};
This class is the parameters parser for class FakeSpeaker.
fakeSpeaker : fake device implementing the IAudioRender device interface to play sound
Definition FakeSpeaker.h:35
~FakeSpeaker() override
FakeSpeaker & operator=(FakeSpeaker &&)=delete
virtual bool interruptDeviceAndClose() override
FakeSpeaker & operator=(const FakeSpeaker &)=delete
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
virtual yarp::dev::ReturnValue setHWGain(double gain) override
Sets the hardware gain of the playback device (if supported by the hardware)
virtual bool configureDeviceAndStart() override
FakeSpeaker(const FakeSpeaker &)=delete
bool close() override
Close the DeviceDriver.
FakeSpeaker(FakeSpeaker &&)=delete
AudioPlayerDeviceBase : a base class for all audio player devices
Interface implemented by all device drivers.
An abstraction for a periodic thread.
A base class for nested structures that can be searched.
Definition Searchable.h:31