![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Audio pump. More...
#include <roc_sndio/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. | |
| bool | is_valid () const |
| Check if the object was successfulyl constructed. | |
| bool | run () |
| Run the pump. | |
| void | stop () |
| Stop the pump. | |
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.
| bool roc::sndio::Pump::run | ( | ) |
Run the pump.
| void roc::sndio::Pump::stop | ( | ) |
Stop the pump.