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