YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
yarpAudioPlayer_IDL.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// Autogenerated by Thrift Compiler (0.14.1-yarped)
7//
8// This is an automatically generated file.
9// It could get re-generated if the ALLOW_IDL_GENERATION flag is on.
10
11#ifndef YARP_THRIFT_GENERATOR_SERVICE_YARPAUDIOPLAYER_IDL_H
12#define YARP_THRIFT_GENERATOR_SERVICE_YARPAUDIOPLAYER_IDL_H
13
14#include <yarp/os/Wire.h>
17
23 public yarp::os::Wire
24{
25public:
26 //ProtocolVersion
29 virtual bool checkProtocolVersion();
30
31 // Constructor
33
34 //Service methods
39 virtual bool play(const std::string& filename);
40
51 virtual bool test(const std::string& type = "sine", const double duration = 1, const double frequency = 440, const std::int16_t amplitude = 30000, const std::int16_t sampling_rate = 16000, const std::int16_t channels = 1);
52
53 // help method
54 virtual std::vector<std::string> help(const std::string& functionName = "--all");
55
56 // read from ConnectionReader
57 bool read(yarp::os::ConnectionReader& connection) override;
58};
59
60#endif // YARP_THRIFT_GENERATOR_SERVICE_YARPAUDIOPLAYER_IDL_H
yarpAudioPlayer_IDL Interface.
virtual std::vector< std::string > help(const std::string &functionName="--all")
virtual yarp::os::ApplicationNetworkProtocolVersion getLocalProtocolVersion()
virtual bool test(const std::string &type="sine", const double duration=1, const double frequency=440, const std::int16_t amplitude=30000, const std::int16_t sampling_rate=16000, const std::int16_t channels=1)
Generate and send a test sound.
virtual bool checkProtocolVersion()
virtual bool play(const std::string &filename)
Play the given audio file.
virtual yarp::os::ApplicationNetworkProtocolVersion getRemoteProtocolVersion()
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
An interface for reading from a network connection.
Base class for IDL client/server.
Definition Wire.h:18