Class AsyncAudioCapture

Definition

Namespace:
Tizen.Multimedia
Assembly:
Tizen.Multimedia.AudioIO.dll
API Level:
3
Privilege Level:
public
Privilege:
http://tizen.org/privilege/recorder

Provides the ability to record audio from system audio input devices in an asynchronous way.

C#
Copy
public class AsyncAudioCapture : AudioCaptureBase, IDisposable
Inheritance
AsyncAudioCapture
Implements
System.IDisposable

Constructors

View Source

AsyncAudioCapture(Int32, AudioChannel, AudioSampleType)

Initializes a new instance of the AsyncAudioCapture class with the specified sample rate, channel and sampleType.

Declaration
C#
Copy
public AsyncAudioCapture(int sampleRate, AudioChannel channel, AudioSampleType sampleType)
Parameters
Type Name Description
System.Int32 sampleRate

The audio sample rate (8000 ~ 192000Hz).

AudioChannel channel

The audio channel type.

AudioSampleType sampleType

The audio sample type.

Exceptions
Type Condition
ArgumentOutOfRangeException

sampleRate is less than MinSampleRate.
-or-
sampleRate is greater than MaxSampleRate.

System.ArgumentException

channel is invalid.
-or-
sampleType is invalid.

UnauthorizedAccessException

The required privilege is not specified.

System.NotSupportedException

The system does not support microphone.

API Level: 3

Events

View Source

DataAvailable

Occurs when audio data is available.

Declaration
C#
Copy
public event EventHandler<AudioDataAvailableEventArgs> DataAvailable
Event Type
Type Description
System.EventHandler<AudioDataAvailableEventArgs>
API Level: 3

Implements

System.IDisposable