YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
Mp3Sound.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#ifndef YARP_MP3SOUND_CONVERTER_H
7#define YARP_MP3SOUND_CONVERTER_H
8
9#include <yarp/os/Bottle.h>
10#include <yarp/os/Things.h>
11#include <yarp/sig/Sound.h>
13
25{
26public:
27 bool create(const yarp::os::Property& options) override;
28 void destroy() override;
29
30 bool setparam(const yarp::os::Property& params) override;
31 bool getparam(yarp::os::Property& params) override;
32
33 bool accept(yarp::os::Things& thing) override;
35
36private:
37 bool senderSide;
40};
41
42#endif // YARP_MP3SOUND_CONVERTER_H
sound_compression_mp3: A portmonitor which is able to convert apply mp3 compression/decompression to ...
Definition Mp3Sound.h:25
bool accept(yarp::os::Things &thing) override
This will be called when the data reach the portmonitor object.
Definition Mp3Sound.cpp:46
bool create(const yarp::os::Property &options) override
This will be called when the dll is properly loaded by the portmonitor carrier.
Definition Mp3Sound.cpp:26
yarp::os::Things & update(yarp::os::Things &thing) override
After data get accpeted in the accept() callback, an instance of that is given to the update function...
Definition Mp3Sound.cpp:65
bool getparam(yarp::os::Property &params) override
This will be called when the portmonitor carrier parameters are requested via YARP admin port.
Definition Mp3Sound.cpp:41
void destroy() override
This will be called when the portmonitor object destroyes.
Definition Mp3Sound.cpp:32
bool setparam(const yarp::os::Property &params) override
This will be called when the portmonitor carrier parameters are set via YARP admin port.
Definition Mp3Sound.cpp:36
A class for storing options and configuration information.
Definition Property.h:33
Base class for generic things.
Definition Things.h:18
Class for storing sounds See Audio in YARP for additional documentation on YARP audio.
Definition Sound.h:25