Class AudioCapture
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.AudioIO.dll
Provides the ability to record audio from system audio input devices in a synchronous way.
public class AudioCapture : AudioCaptureBase, IDisposable
- Inheritance
- Implements
-
System.IDisposable
Constructors
View SourceAudioCapture(int, AudioChannel, AudioSampleType)
Initializes a new instance of the AudioCapture class with the specified sample rate, channel, and sampleType.
Declaration
public AudioCapture(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. |
Methods
View SourceRead(int)
Reads audio data from the audio input buffer.
Declaration
public byte[] Read(int count)
Parameters
Type | Name | Description |
---|---|---|
int | count | The number of bytes to be read. |
Returns
Type | Description |
---|---|
byte[] | The buffer of audio data captured. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The current state is not Running. |
System.ArgumentOutOfRangeException |
|
System.ObjectDisposedException | The AudioCapture has already been disposed of. |
Implements
System.IDisposable