Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::audio::PCMFuncs Struct Reference

PCM function table. More...

#include <pcm_funcs.h>

Public Attributes

size_t(* samples_from_payload_size )(size_t payload_size)
 Get number of samples per channel from payload size in bytes. More...
 
size_t(* payload_size_from_samples )(size_t num_samples)
 Get payload size in bytes from number of samples per channel. More...
 
size_t(* encode_samples )(void *out_data, size_t out_size, size_t out_offset, const sample_t *in_samples, size_t in_n_samples, packet::channel_mask_t in_chan_mask)
 Encode samples. More...
 
size_t(* decode_samples )(const void *in_data, size_t in_size, size_t in_offset, sample_t *out_samples, size_t out_n_samples, packet::channel_mask_t out_chan_mask)
 Decode samples. More...
 

Detailed Description

PCM function table.

Definition at line 23 of file pcm_funcs.h.

Member Data Documentation

size_t(* roc::audio::PCMFuncs::decode_samples) (const void *in_data, size_t in_size, size_t in_offset, sample_t *out_samples, size_t out_n_samples, packet::channel_mask_t out_chan_mask)

Decode samples.

Definition at line 39 of file pcm_funcs.h.

size_t(* roc::audio::PCMFuncs::encode_samples) (void *out_data, size_t out_size, size_t out_offset, const sample_t *in_samples, size_t in_n_samples, packet::channel_mask_t in_chan_mask)

Encode samples.

Definition at line 31 of file pcm_funcs.h.

size_t(* roc::audio::PCMFuncs::payload_size_from_samples) (size_t num_samples)

Get payload size in bytes from number of samples per channel.

Definition at line 28 of file pcm_funcs.h.

size_t(* roc::audio::PCMFuncs::samples_from_payload_size) (size_t payload_size)

Get number of samples per channel from payload size in bytes.

Definition at line 25 of file pcm_funcs.h.


The documentation for this struct was generated from the following file: