Class AsyncAudioCapture
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.AudioIO.dll
Provides the ability to record audio from system audio input devices in an asynchronous way.
C#Copypublic class AsyncAudioCapture : AudioCaptureBase, IDisposable
- Inheritance
- Implements
-
System.IDisposable
Constructors
View Source
AsyncAudioCapture(int, AudioChannel, AudioSampleType)
Initializes a new instance of the AsyncAudioCapture class with the specified sample rate, channel and sampleType.
Declaration
C#Copypublic AsyncAudioCapture(int sampleRate, AudioChannel channel, AudioSampleType sampleType)
Parameters
Type | Name | Description |
---|---|---|
int | sampleRate | The audio sample rate (8000 ~ 192000Hz). |
AudioChannel | channel | The audio channel type. |
AudioSampleType | sampleType | The audio sample type. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException |
|
System.ArgumentException |
|
System.UnauthorizedAccessException | The required privilege is not specified. |
System.NotSupportedException | The system does not support microphone. |
Events
Declaration
C#Copypublic event EventHandler<AudioDataAvailableEventArgs> DataAvailable
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><AudioDataAvailableEventArgs> |
Implements
System.IDisposable