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 (based on compiler 0.14.1-yarped)
7// yarpidl_thrift version 2.0 - 11/11/2026
8// Protocol version: protocol_version=0, yarp_major=4, yarp_minor=0, yarp_patch=2
9// This is an automatically generated file.
10// It could get re-generated if the ALLOW_IDL_GENERATION flag is on.
11
12#ifndef YARP_THRIFT_GENERATOR_SERVICE_YARPAUDIOPLAYER_IDL_H
13#define YARP_THRIFT_GENERATOR_SERVICE_YARPAUDIOPLAYER_IDL_H
14
15#include <yarp/os/Wire.h>
18
24 public yarp::os::Wire
25{
26public:
27 //ProtocolVersion
30 virtual bool checkProtocolVersion();
31
32 // Constructor
34
35 //Service methods
40 virtual bool play(const std::string& filename);
41
52 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);
53
54 // help method
55 virtual std::vector<std::string> help(const std::string& functionName = "--all");
56
57 // read from ConnectionReader
58 bool read(yarp::os::ConnectionReader& connection) override;
59};
60
61#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