17 const size_t current_buffer_size,
18 const size_t max_buffer_size) :
21 current_buffer_size(current_buffer_size),
22 max_buffer_size(max_buffer_size)
29 if (!read_enabled(reader)) {
32 if (!read_current_buffer_size(reader)) {
35 if (!read_max_buffer_size(reader)) {
60 if (!write_enabled(writer)) {
63 if (!write_current_buffer_size(writer)) {
66 if (!write_max_buffer_size(writer)) {
A simple collection of objects that can be described and transmitted in a portable way.
std::string toString() const override
Gives a human-readable textual representation of the bottle.
An interface for reading from a network connection.
An interface for writing to a network connection.
static bool copyPortable(const PortWriter &writer, PortReader &reader)
Copy one portable to another, via writing and reading.
IDL-friendly connection reader.
bool readSizeT(std::size_t &x)
IDL-friendly connection writer.
bool writeBool(bool x, bool skip_tag=false) const
bool writeListHeader(int len) const
bool writeSizeT(std::size_t x, bool skip_tag=false) const
AudioRecorderStatus()=default
std::string toString() const
size_t current_buffer_size
the size of the audio buffer [samples]
size_t max_buffer_size
the max_size of the audio buffer [samples]
bool enabled
true if the playback is currently enabled
bool read(yarp::os::idl::WireReader &reader) override
bool write(const yarp::os::idl::WireWriter &writer) const override