anbox-platform-sdk  1.23.0
Anbox Platform SDK API documentation
AnboxAudioSpec Struct Reference

The audio input/output format from anbox. More...

#include <types.h>

+ Collaboration diagram for AnboxAudioSpec:

Public Attributes

uint32_t freq
 
AnboxAudioFormat format
 
uint8_t channels
 
uint16_t samples
 

Detailed Description

The audio input/output format from anbox.

E.g. AnboxAudioSpec spec{44100, AUDIO_FORMAT_PCM_16_BIT, 2, 4096}; The above spec indicates the audio data is sampled 44100 times per second, 16-bit pcm audio format, two channel with 4kb buffer size in samples.

Definition at line 188 of file types.h.

Member Data Documentation

◆ channels

uint8_t AnboxAudioSpec::channels

The number of audio signal channels.

Definition at line 194 of file types.h.

◆ format

AnboxAudioFormat AnboxAudioSpec::format

The audio data format.

Definition at line 192 of file types.h.

◆ freq

uint32_t AnboxAudioSpec::freq

The number of samples of audio per second.

Definition at line 190 of file types.h.

◆ samples

uint16_t AnboxAudioSpec::samples

The audio buffer size in samples.

Definition at line 196 of file types.h.


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