Skip to main content
Version: 20 Mar 2024

MLAudioBufferFormat

Module: Audio / Audio Definitions / Acoustics / Buffering

Buffer format settings for input and output streams. More...

#include <ml_audio.h>

Public Attributes

TypeName
uint32_tchannel_count
uint32_tsamples_per_second
uint32_tbits_per_sample
uint32_tvalid_bits_per_sample
MLAudioSampleFormatsample_format
MLAudioChannelFormatchannel_format

Detailed Description

struct MLAudioBufferFormat;

Buffer format settings for input and output streams.

API Level:

  • 20

Public Attributes Documentation

channel_count

uint32_t channel_count;

Number of channels.


samples_per_second

uint32_t samples_per_second;

Sample rate.


bits_per_sample

uint32_t bits_per_sample;

Number of bits per sample.


valid_bits_per_sample

uint32_t valid_bits_per_sample;

Number of bits used per sample.


sample_format

MLAudioSampleFormat sample_format;

Integer or float. Float is not currently implemented for buffered I/O.


channel_format

MLAudioChannelFormat channel_format;

Channel configuration.