![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
PCM decoder. More...
#include <pcm_decoder.h>
Public Member Functions | |
PCMDecoder (const PCMFuncs &funcs) | |
Initialize. More... | |
virtual packet::timestamp_t | position () const |
Get current stream position. More... | |
virtual packet::timestamp_t | available () const |
Get number of samples available for decoding. More... | |
virtual void | begin (packet::timestamp_t frame_position, const void *frame_data, size_t frame_size) |
Start decoding a new frame. More... | |
virtual size_t | read (sample_t *samples, size_t n_samples, packet::channel_mask_t channels) |
Read samples from current frame. More... | |
virtual size_t | shift (size_t n_samples) |
Shift samples from current frame. More... | |
virtual void | end () |
Finish decoding current frame. More... | |
PCM decoder.
Definition at line 23 of file pcm_decoder.h.
|
explicit |
Initialize.
|
virtual |
Get number of samples available for decoding.
Implements roc::audio::IFrameDecoder.
|
virtual |
Start decoding a new frame.
Implements roc::audio::IFrameDecoder.
|
virtual |
Finish decoding current frame.
Implements roc::audio::IFrameDecoder.
|
virtual |
Get current stream position.
Implements roc::audio::IFrameDecoder.
|
virtual |
Read samples from current frame.
Implements roc::audio::IFrameDecoder.
|
virtual |
Shift samples from current frame.
Implements roc::audio::IFrameDecoder.