Class AudioMediaFormat
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.dll
- API Level:
- 3
Represents an audio media format. This class cannot be inherited.
C#Copypublic sealed class AudioMediaFormat : MediaFormat
- Inheritance
Constructors
AudioMediaFormat(MediaFormatAudioMimeType, Int32, Int32, Int32, Int32)
Initializes a new instance of the AudioMediaFormat class with the specified mime type, channel, sample rate, bit, and bit rate.
Declaration
C#Copypublic AudioMediaFormat(MediaFormatAudioMimeType mimeType, int channel, int sampleRate, int bit, int bitRate)
Parameters
Type | Name | Description |
---|---|---|
MediaFormatAudioMimeType | mimeType | The mime type of the format. |
System.Int32 | channel | The channel value of the format. |
System.Int32 | sampleRate | The sample rate value of the format. |
System.Int32 | bit | The bit value of the format. |
System.Int32 | bitRate | The bit rate value of the format. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException |
|
ArgumentOutOfRangeException |
|
API Level: 3
AudioMediaFormat(MediaFormatAudioMimeType, Int32, Int32, Int32, Int32, MediaFormatAacType)
Initializes a new instance of the AudioMediaFormat class with the specified mime type, channel, sample rate, bit, bit rate, and AAC type.
Declaration
C#Copypublic AudioMediaFormat(MediaFormatAudioMimeType mimeType, int channel, int sampleRate, int bit, int bitRate, MediaFormatAacType aacType)
Parameters
Type | Name | Description |
---|---|---|
MediaFormatAudioMimeType | mimeType | The mime type of the format. |
System.Int32 | channel | The channel value of the format. |
System.Int32 | sampleRate | The sample rate value of the format. |
System.Int32 | bit | The bit value of the format. |
System.Int32 | bitRate | The bit rate value of the format. |
MediaFormatAacType | aacType | The AAC bitstream format(ADIF or ADTS). |
Exceptions
Type | Condition |
---|---|
System.ArgumentException |
|
ArgumentOutOfRangeException |
|
API Level: 3
Properties
Declaration
C#Copypublic MediaFormatAacType AacType { get; }
Property Value
Type | Description |
---|---|
MediaFormatAacType |
API Level: 3
Declaration
C#Copypublic int Bit { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: 3
Declaration
C#Copypublic int BitRate { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: 3
Declaration
C#Copypublic int Channel { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: 3
Declaration
C#Copypublic MediaFormatAudioMimeType MimeType { get; }
Property Value
Type | Description |
---|---|
MediaFormatAudioMimeType |
API Level: 3
Declaration
C#Copypublic int SampleRate { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: 3
Methods
Declaration
C#Copypublic override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | A Object to compare. |
Returns
Type | Description |
---|---|
Boolean | true if the formats are equal; otherwise, false. |
Overrides
API Level: 3
Declaration
C#Copypublic override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The hash code for this instance of AudioMediaFormat. |
Overrides
API Level: 3
Declaration
C#Copypublic override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents the current object. |