|
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::BufferPool< audio::sample_t > &buffer_pool, ISource &source, ISink &sink, size_t frame_size, Mode mode) | |
| Initialize. More... | |
| bool | valid () const |
| Check if the object was successfulyl constructed. More... | |
| bool | run () |
| Run the pump. More... | |
| void | stop () |
| Stop the pump. More... | |
Audio pump.
| roc::sndio::Pump::Pump | ( | core::BufferPool< audio::sample_t > & | buffer_pool, |
| ISource & | source, | ||
| ISink & | sink, | ||
| size_t | frame_size, | ||
| Mode | mode | ||
| ) |
Initialize.
| bool roc::sndio::Pump::run | ( | ) |
Run the pump.
| void roc::sndio::Pump::stop | ( | ) |
Stop the pump.
| bool roc::sndio::Pump::valid | ( | ) | const |
Check if the object was successfulyl constructed.