12#ifndef ROC_SNDIO_PUMP_H_
13#define ROC_SNDIO_PUMP_H_
69 bool transfer_frame_(
ISource& current_source);
#define ROC_ATTR_NODISCARD
Emit warning if function result is not checked.
Sample specification. Describes sample rate and channels.
Base class for non-copyable objects.
Shared ownership intrusive pointer.
void stop()
Stop the pump.
ROC_ATTR_NODISCARD bool run()
Run the pump.
bool is_valid() const
Check if the object was successfulyl constructed.
Pump(core::IPool &buffer_pool, ISource &source, ISource *backup_source, ISink &sink, core::nanoseconds_t frame_length, const audio::SampleSpec &sample_spec, Mode mode)
Initialize.
Commonly used types and functions.
Various units used in packets.