#include <ppb_media_data_source_samsung.h>
Interface representing an audio elementary stream and containing methods to set audio codec specific configuration.
All pending configuration changes/initialization must be confirmed by call to PPB_ElementaryStream_Samsung.InitializeDone
.
All getters return last set configuration, which might be not confirmed yet.
PP_AudioCodec_Profile_Samsung(* PPB_AudioElementaryStream_Samsung_1_0::GetAudioCodecProfile)(PP_Resource stream) |
Retrieves current audio codec profile.
- Parameters
-
[in] | stream | A PP_Resource identifying the audio elementary stream. |
- Returns
- Current audio codec profile.
PP_AudioCodec_Type_Samsung(* PPB_AudioElementaryStream_Samsung_1_0::GetAudioCodecType)(PP_Resource stream) |
Retrieves current audio codec type.
- Parameters
-
[in] | stream | A PP_Resource identifying the audio elementary stream. |
- Returns
- Current audio codec type.
int32_t(* PPB_AudioElementaryStream_Samsung_1_0::GetBitsPerChannel)(PP_Resource stream) |
Retrieves how many bits are used to represent audio sample per each channel.
- Parameters
-
[in] | stream | A PP_Resource identifying the audio elementary stream. |
- Returns
- How many bits are used to represent audio sample per each channel.
PP_ChannelLayout_Samsung(* PPB_AudioElementaryStream_Samsung_1_0::GetChannelLayout)(PP_Resource stream) |
Retrieves current audio channel layout.
- Parameters
-
[in] | stream | A PP_Resource identifying the audio elementary stream. |
- Returns
- current audio channel layout.
PP_SampleFormat_Samsung(* PPB_AudioElementaryStream_Samsung_1_0::GetSampleFormat)(PP_Resource stream) |
Retrieves current audio sample format.
- Parameters
-
[in] | stream | A PP_Resource identifying the audio elementary stream. |
- Returns
- Current audio sample format.
int32_t(* PPB_AudioElementaryStream_Samsung_1_0::GetSamplesPerSecond)(PP_Resource stream) |
Retrieves how many audio samples were recorded per second (sample rate).
- Parameters
-
[in] | stream | A PP_Resource identifying the audio elementary stream. |
- Returns
- Current audio samples per second.
PP_Bool(* PPB_AudioElementaryStream_Samsung_1_0::IsAudioElementaryStream)(PP_Resource resource) |
Determines if the given resource is an audio elementary stream.
- Parameters
-
[in] | resource | A PP_Resource identifying a resource. |
- Returns
PP_TRUE
if the resource is a PPB_AudioElementaryStream_Samsung
, PP_FALSE
if the resource is invalid or some other type.
void(* PPB_AudioElementaryStream_Samsung_1_0::SetAudioCodecProfile)(PP_Resource stream, PP_AudioCodec_Profile_Samsung profile) |
Sets new audio codec profile.
- Parameters
-
[in] | stream | A PP_Resource identifying the audio elementary stream. |
[in] | profile | New audio codec profile. |
void(* PPB_AudioElementaryStream_Samsung_1_0::SetAudioCodecType)(PP_Resource stream, PP_AudioCodec_Type_Samsung audio_codec) |
Sets new audio codec type.
- Parameters
-
[in] | stream | A PP_Resource identifying the audio elementary stream. |
[in] | audio_codec | New audio codec type. |
void(* PPB_AudioElementaryStream_Samsung_1_0::SetBitsPerChannel)(PP_Resource stream, int32_t bits_per_channel) |
Sets how many bits are used to represent audio sample per each channel.
- Parameters
-
[in] | stream | A PP_Resource identifying the audio elementary stream. |
[in] | bits_per_channel | Value representing how many bits are used to represent audio sample per each channel. |
void(* PPB_AudioElementaryStream_Samsung_1_0::SetChannelLayout)(PP_Resource stream, PP_ChannelLayout_Samsung channel_layout) |
Sets new audio channel layout.
- Parameters
-
[in] | stream | A PP_Resource identifying the audio elementary stream. |
[in] | audio_codec | New audio channel layout. |
void(* PPB_AudioElementaryStream_Samsung_1_0::SetCodecExtraData)(PP_Resource stream, uint32_t extra_data_size, const void *extra_data) |
Sets audio codec specific extra data. Those data are needed by audio codec to initialize properly audio decoding.
- Parameters
-
[in] | stream | A PP_Resource identifying the audio elementary stream. |
[in] | extra_data_size | Size in bytes of |extra_data| buffer. |
[in] | extra_data | A pointer to the buffer containing audio codec specific extra data. |
void(* PPB_AudioElementaryStream_Samsung_1_0::SetSampleFormat)(PP_Resource stream, PP_SampleFormat_Samsung sample_format) |
Sets new audio sample format.
- Parameters
-
[in] | stream | A PP_Resource identifying the audio elementary stream. |
[in] | sample_format | New audio sample format. |
void(* PPB_AudioElementaryStream_Samsung_1_0::SetSamplesPerSecond)(PP_Resource stream, int32_t samples_per_second) |
Sets how many audio samples were recorded per second (sample rate).
- Parameters
-
[in] | stream | A PP_Resource identifying the audio elementary stream. |
[in] | samples_per_second | Value representing audio samples per second. |
The documentation for this struct was generated from the following file: