Native Player  1.0
AudioConfig Struct Reference

Structure describing Elementary Audio Stream configuration. More...

#include <stream_demuxer.h>

Public Member Functions

bool operator== (const AudioConfig &config) const

Public Attributes

Samsung::NaClPlayer::AudioCodec_Type codec_type
Samsung::NaClPlayer::AudioCodec_Profile codec_profile
Samsung::NaClPlayer::SampleFormat sample_format
Samsung::NaClPlayer::ChannelLayout channel_layout
int32_t bits_per_channel
int32_t samples_per_second
 Describes audio samples per second in [Hz] like 44100, 22050, etc. More...
std::vector< uint8_t > extra_data

Detailed Description

Structure describing Elementary Audio Stream configuration.

Not all fields are required to properly configure audio elementary stream. Fields not needed can be ignored.

Definition at line 49 of file stream_demuxer.h.

Member Function Documentation

bool AudioConfig::operator== ( const AudioConfig config) const

Checks if compared object config is equal to this AudioConfig.

True if objects are equal.
False otherwise.

Definition at line 82 of file stream_demuxer.h.

Member Data Documentation

int32_t AudioConfig::bits_per_channel

Describes audio bits per channel like 16, 32 etc.

Please note that used unit is [bit] not [byte]. E.g. 16 [bits] = 2 [bytes]

Definition at line 70 of file stream_demuxer.h.

Samsung::NaClPlayer::ChannelLayout AudioConfig::channel_layout

Describes audio channel layout like mono, stereo, etc.

See also
enum Samsung::NaClPlayer::ChannelLayout

Definition at line 65 of file stream_demuxer.h.

Samsung::NaClPlayer::AudioCodec_Profile AudioConfig::codec_profile

Describes audio codec profile like AAC Main, AAC Low, etc.

See also
enum Samsung::NaClPlayer::AudioCodec_Profile
Only some codecs require codec profile like AAC, DTS, etc.

Definition at line 57 of file stream_demuxer.h.

Samsung::NaClPlayer::AudioCodec_Type AudioConfig::codec_type

Describes audio codec type like AAC, MP3, etc.

See also
enum Samsung::NaClPlayer::AudioCodec_Type

Definition at line 52 of file stream_demuxer.h.

std::vector<uint8_t> AudioConfig::extra_data

Describes audio extra data. Some codecs need more data to encode stream. Usually it's in header of the file.

Definition at line 77 of file stream_demuxer.h.

Samsung::NaClPlayer::SampleFormat AudioConfig::sample_format

Describes audio sample format like signed 16-bit, Float 32-bit, etc.

See also
enum Samsung::NaClPlayer::SampleFormat

Definition at line 61 of file stream_demuxer.h.

int32_t AudioConfig::samples_per_second

Describes audio samples per second in [Hz] like 44100, 22050, etc.

Definition at line 73 of file stream_demuxer.h.

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