Class StreamRecorderAudioOptions
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.StreamRecorder.dll
- API Level:
- 4
Specifies the options associated with audio recording.
C#Copypublic class StreamRecorderAudioOptions
- Inheritance
-
StreamRecorderAudioOptions
Constructors
StreamRecorderAudioOptions(RecorderAudioCodec)
Initialize a new instance of the StreamRecorderAudioOptions class with the specified codec.
Declaration
C#Copypublic StreamRecorderAudioOptions(RecorderAudioCodec codec)
Parameters
Type | Name | Description |
---|---|---|
RecorderAudioCodec | codec | The RecorderAudioCodec for encoding audio stream. |
Remarks
SampleRate, BitRate and Channels will be set as default.
Exceptions
Type | Condition |
---|---|
System.ArgumentException |
|
API Level: 4
StreamRecorderAudioOptions(RecorderAudioCodec, Int32, Int32, Int32)
Initialize a new instance of the StreamRecorderAudioOptions class with the specified codec, sample rate, bit rate, and channel value.
Declaration
C#Copypublic StreamRecorderAudioOptions(RecorderAudioCodec codec, int sampleRate, int bitRate, int channels)
Parameters
Type | Name | Description |
---|---|---|
RecorderAudioCodec | codec | The RecorderAudioCodec for encoding audio stream. |
System.Int32 | sampleRate | The sample rate for encoding audio stream. |
System.Int32 | bitRate | The bit rate for encoding audio stream. |
System.Int32 | channels | The number of channels for encoding audio stream. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException |
|
ArgumentOutOfRangeException |
|
API Level: 4
Properties
Declaration
C#Copypublic int BitRate { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The bit rate value for audio stream recording. The default is 128000. |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException |
|
API Level: 4
Declaration
C#Copypublic int Channels { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The number of audio channels for audio stream recording. The default is 2. |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException |
|
API Level: 4
Declaration
C#Copypublic RecorderAudioCodec Codec { get; set; }
Property Value
Type | Description |
---|---|
RecorderAudioCodec | The codec for audio stream recording. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException |
|
See Also
API Level: 4
Declaration
C#Copypublic int SampleRate { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The sample rate value for stream recorder. The default is zero. |
Remarks
If the value is zero, the sample rate will be decided based on input buffers.
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException |
|