Sound Open Firmware
Loading...
Searching...
No Matches
snd_codec Struct Reference

struct snd_codec More...

#include <compress_params.h>

Collaboration diagram for snd_codec:

Data Fields

uint32_t id
uint32_t ch_in
uint32_t ch_out
uint32_t sample_rate
uint32_t bit_rate
uint32_t rate_control
uint32_t profile
uint32_t level
uint32_t ch_mode
uint32_t format
uint32_t align
union snd_codec_options options
uint32_t reserved [3]

Detailed Description

struct snd_codec

@id: Identifies the supported audio encoder/decoder. See SND_AUDIOCODEC macros. @ch_in: Number of input audio channels @ch_out: Number of output channels. In case of contradiction between this field and the channelMode field, the channelMode field overrides. @sample_rate: Audio sample rate of input data in Hz, use values like 48000 for this. @bit_rate: Bitrate of encoded data. May be ignored by decoders @rate_control: Encoding rate control. See SND_RATECONTROLMODE defines. Encoders may rely on profiles for quality levels. May be ignored by decoders. @profile: Mandatory for encoders, can be mandatory for specific decoders as well. See SND_AUDIOPROFILE defines. @level: Supported level (Only used by WMA at the moment) @ch_mode: Channel mode for encoder. See SND_AUDIOCHANMODE defines @format: Format of encoded bistream. Mandatory when defined. See SND_AUDIOSTREAMFORMAT defines. @align: Block alignment in bytes of an audio sample. Only required for PCM or IEC formats. @options: encoder-specific settings @reserved: reserved for future use

Field Documentation

◆ align

uint32_t snd_codec::align

◆ bit_rate

uint32_t snd_codec::bit_rate

◆ ch_in

uint32_t snd_codec::ch_in

◆ ch_mode

uint32_t snd_codec::ch_mode

◆ ch_out

uint32_t snd_codec::ch_out

◆ format

uint32_t snd_codec::format

◆ id

uint32_t snd_codec::id

◆ level

uint32_t snd_codec::level

◆ options

union snd_codec_options snd_codec::options

◆ profile

uint32_t snd_codec::profile

◆ rate_control

uint32_t snd_codec::rate_control

◆ reserved

uint32_t snd_codec::reserved[3]

◆ sample_rate

uint32_t snd_codec::sample_rate

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