Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
PCM encoder. More...
#include <pcm_encoder.h>
Public Member Functions | |
PcmEncoder (const SampleSpec &sample_spec) | |
Initialize. More... | |
virtual size_t | encoded_byte_count (size_t num_samples) const |
Get encoded frame size in bytes for given number of samples per channel. More... | |
virtual void | begin (void *frame, size_t frame_size) |
Start encoding a new frame. More... | |
virtual size_t | write (const sample_t *samples, size_t n_samples) |
Encode samples. More... | |
virtual void | end () |
Finish encoding frame. More... | |
Static Public Member Functions | |
static IFrameEncoder * | construct (core::IArena &arena, const SampleSpec &sample_spec) |
Construction function. More... | |
PCM encoder.
Definition at line 24 of file pcm_encoder.h.
roc::audio::PcmEncoder::PcmEncoder | ( | const SampleSpec & | sample_spec | ) |
Initialize.
|
virtual |
Start encoding a new frame.
Implements roc::audio::IFrameEncoder.
|
static |
Construction function.
|
virtual |
Get encoded frame size in bytes for given number of samples per channel.
Implements roc::audio::IFrameEncoder.
|
virtual |
Finish encoding frame.
Implements roc::audio::IFrameEncoder.
|
virtual |
Encode samples.
Implements roc::audio::IFrameEncoder.