Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Audio pump. More...
#include <pump.h>
Public Types | |
enum | Mode { ModePermanent = 0 , ModeOneshot = 1 } |
Pump mode. More... | |
Public Member Functions | |
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. More... | |
bool | is_valid () const |
Check if the object was successfulyl constructed. More... | |
ROC_ATTR_NODISCARD bool | run () |
Run the pump. More... | |
void | stop () |
Stop the pump. More... | |
Audio pump.
roc::sndio::Pump::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.
bool roc::sndio::Pump::is_valid | ( | ) | const |
Check if the object was successfulyl constructed.
ROC_ATTR_NODISCARD bool roc::sndio::Pump::run | ( | ) |
Run the pump.
void roc::sndio::Pump::stop | ( | ) |
Stop the pump.