11#ifndef YARP_THRIFT_GENERATOR_SERVICE_YARPAUDIOPLAYER_IDL_H
12#define YARP_THRIFT_GENERATOR_SERVICE_YARPAUDIOPLAYER_IDL_H
39 virtual bool play(
const std::string& filename);
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);
54 virtual std::vector<std::string>
help(
const std::string& functionName =
"--all");
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.