|
Viam C++ SDK current
|
gRPC client implementation of an AudioOut component.
More...
#include <audio_out_client.hpp>
Inheritance diagram for viam::sdk::impl::AudioOutClient:Public Types | |
| using | interface_type = AudioOut |
Public Types inherited from viam::sdk::AudioOut | |
| using | audio_info = viam::sdk::audio_info |
Public Member Functions | |
| AudioOutClient (std::string name, std::shared_ptr< grpc::Channel > channel) | |
| void | play (std::vector< uint8_t > const &audio_data, boost::optional< audio_info > info, const ProtoStruct &extra) override |
| Play audio through the audioout component. | |
| audio_properties | get_properties (const ProtoStruct &extra) override |
| Returns properties of the audio out device (supported codecs, sample rate, number of channels) | |
| ProtoStruct | do_command (const ProtoStruct &command) override |
| Send/receive arbitrary commands to the resource. | |
| std::vector< GeometryConfig > | get_geometries (const ProtoStruct &extra) override |
Returns GeometryConfigs associated with the calling audioout. | |
| std::vector< GeometryConfig > | get_geometries () |
| virtual std::vector< GeometryConfig > | get_geometries (const ProtoStruct &extra)=0 |
Returns GeometryConfigs associated with the calling audioout. | |
| audio_properties | get_properties () |
| Returns properties of the audio out device (supported codecs, sample rate, number of channels) | |
| virtual audio_properties | get_properties (const ProtoStruct &extra)=0 |
| Returns properties of the audio out device (supported codecs, sample rate, number of channels) | |
| void | play (std::vector< uint8_t > const &audio_data, boost::optional< audio_info > info) |
| Play audio data. | |
| virtual void | play (std::vector< uint8_t > const &audio_data, boost::optional< audio_info > info, const ProtoStruct &extra)=0 |
| Play audio through the audioout component. | |
Public Member Functions inherited from viam::sdk::AudioOut | |
| void | play (std::vector< uint8_t > const &audio_data, boost::optional< audio_info > info) |
| Play audio data. | |
| audio_properties | get_properties () |
| Returns properties of the audio out device (supported codecs, sample rate, number of channels) | |
| std::vector< GeometryConfig > | get_geometries () |
| API | api () const override |
Returns the API associated with a particular resource. | |
Public Member Functions inherited from viam::sdk::Component | |
| Name | get_resource_name () const override |
Returns the Name for a particular resource. | |
Public Member Functions inherited from viam::sdk::Resource | |
| Resource (std::string name) | |
| virtual std::string | name () const |
| Return the resource's name. | |
| void | set_log_level (log_level) const |
| Set the log level for log messages originating from this Resource. | |
Additional Inherited Members | |
Protected Member Functions inherited from viam::sdk::AudioOut | |
| AudioOut (std::string name) | |
Protected Member Functions inherited from viam::sdk::Component | |
| Component (std::string name) | |
Protected Member Functions inherited from viam::sdk::Resource | |
| Name | get_resource_name (const std::string &type) const |
Protected Attributes inherited from viam::sdk::Resource | |
| LogSource | logger_ |
gRPC client implementation of an AudioOut component.
|
overridevirtual |
Send/receive arbitrary commands to the resource.
| command | the command to execute. |
Implements viam::sdk::AudioOut.
|
inline |
GeometryConfigs associated with the component.
|
overridevirtual |
Returns GeometryConfigs associated with the calling audioout.
| extra | Any additional arguments to the method. |
GeometryConfigs associated with the component. Implements viam::sdk::AudioOut.
|
virtual |
Returns GeometryConfigs associated with the calling audioout.
| extra | Any additional arguments to the method. |
GeometryConfigs associated with the component. Implements viam::sdk::AudioOut.
|
overridevirtual |
Returns properties of the audio out device (supported codecs, sample rate, number of channels)
| extra | Any additional arguments to the method |
Implements viam::sdk::AudioOut.
|
virtual |
Returns properties of the audio out device (supported codecs, sample rate, number of channels)
| extra | Any additional arguments to the method |
Implements viam::sdk::AudioOut.
|
inline |
Play audio data.
| audio_data | The audio data to play as bytes |
| info | Optional info about the audio_data (codec, sample rate, channels). Required for raw PCM data. |
|
overridevirtual |
Play audio through the audioout component.
| audio_data | The audio data to play |
| info | Optional info about the audio_data (codec, sample rate, channels). Required for raw PCM data. |
| extra | Any additional arguments to the method |
Implements viam::sdk::AudioOut.
|
virtual |
Play audio through the audioout component.
| audio_data | The audio data to play |
| info | Optional info about the audio_data (codec, sample rate, channels). Required for raw PCM data. |
| extra | Any additional arguments to the method |
Implements viam::sdk::AudioOut.