12 #ifndef ROC_AUDIO_IFRAME_ENCODER_H_
13 #define ROC_AUDIO_IFRAME_ENCODER_H_
36 virtual void begin(
void* frame_data,
size_t frame_size) = 0;
60 virtual void end() = 0;
Audio frame encoder interface.
virtual void begin(void *frame_data, size_t frame_size)=0
Start encoding a new frame.
virtual size_t encoded_byte_count(size_t num_samples) const =0
Get encoded frame size in bytes for given number of samples per channel.
virtual void end()=0
Finish encoding current frame.
virtual size_t write(const sample_t *samples, size_t n_samples)=0
Write samples into current frame.
float sample_t
Raw audio sample.
Commonly used types and functions.
Various units used in packets.