YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
SoundFilter_resample.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 SOUNDFILTER_RESAMPLE_H
7#define SOUNDFILTER_RESAMPLE_H
8
9#include <yarp/os/Things.h>
11#include <yarp/sig/Sound.h>
12#include <yarp/os/Bottle.h>
13#include <yarp/os/Log.h>
15#include <yarp/os/LogStream.h>
16
22{
25 int m_channel = -1;
26 int m_output_freq = -1;
27 double m_gain = -1;
28
29public:
30 void getParamsFromCommandLine(std::string carrierString, yarp::os::Property& prop);
31
32 bool create(const yarp::os::Property &options) override;
33 void destroy() override;
34
35 bool setparam(const yarp::os::Property &params) override;
36 bool getparam(yarp::os::Property &params) override;
37
38 void trig() override;;
39
40 bool accept(yarp::os::Things &thing) override;
42};
43
44#endif
soundfilter_resample: Documentation to be added
bool create(const yarp::os::Property &options) override
This will be called when the dll is properly loaded by the portmonitor carrier.
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...
void getParamsFromCommandLine(std::string carrierString, yarp::os::Property &prop)
void destroy() override
This will be called when the portmonitor object destroyes.
bool accept(yarp::os::Things &thing) override
This will be called when the data reach the portmonitor object.
void trig() override
This will be called when one of the peer connections to the same import port receives data.
bool getparam(yarp::os::Property &params) override
This will be called when the portmonitor carrier parameters are requested via YARP admin port.
bool setparam(const yarp::os::Property &params) override
This will be called when the portmonitor carrier parameters are set via YARP admin port.
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