Class AudioCaptureBase
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.AudioIO.dll
Provides the ability to directly manage the system audio input devices.
public abstract class AudioCaptureBase : IDisposable
- Inheritance
-
objectAudio
Capture Base
- Derived
- Implements
-
System.
IDisposable
Fields
View SourceMaxSampleRate
Specifies the maximum value allowed for the audio capture, in Hertz (Hz).
Declaration
public static readonly int MaxSampleRate
Field Value
Type | Description |
---|---|
int |
See Also
View SourceMinSampleRate
Specifies the minimum value allowed for the audio capture, in Hertz (Hz).
Declaration
public static readonly int MinSampleRate
Field Value
Type | Description |
---|---|
int |
See Also
Properties
View SourceChannel
Gets the channel type of the audio input data stream.
Declaration
public AudioChannel Channel { get; }
Property Value
Type | Description |
---|---|
Audio |
SampleRate
Gets the sample rate of the audio input data stream, in Hertz (Hz).
Declaration
public int SampleRate { get; }
Property Value
Type | Description |
---|---|
int |
SampleType
Gets the sample type of the audio input data stream.
Declaration
public AudioSampleType SampleType { get; }
Property Value
Type | Description |
---|---|
Audio |
Methods
View SourceApplyStreamPolicy(AudioStreamPolicy)
Sets the sound stream information to the audio input.
Declaration
public void ApplyStreamPolicy(AudioStreamPolicy streamPolicy)
Parameters
Type | Name | Description |
---|---|---|
Audio |
streamPolicy | The Audio |
Exceptions
Type | Condition |
---|---|
System. |
|
System. |
|
System. |
|
System. |
Not able to retrieve information from |
Dispose()
Releases all resources used by the Audio
Declaration
public void Dispose()
Dispose(bool)
Releases the resources used by the Audio
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
~AudioCaptureBase()
Finalizes an instance of the AudioCaptureBase class.
Declaration
protected ~AudioCaptureBase()
Flush()
Flushes and discards buffered audio data from the input stream.
Declaration
public void Flush()
Exceptions
Type | Condition |
---|---|
System. |
The current state is Idle. |
System. |
The AudioCaptureBase has already been disposed of. |
GetBufferSize()
Gets the size allocated for the audio input buffer.
Declaration
public int GetBufferSize()
Returns
Type | Description |
---|---|
int |
Exceptions
Type | Condition |
---|---|
System. |
The AudioCaptureBase has already been disposed of. |
Pause()
Pauses buffering of audio data from the device.
Declaration
public void Pause()
Exceptions
Type | Condition |
---|---|
System. |
The current state is Idle. |
System. |
The AudioCaptureBase has already been disposed of. |
See Also
View SourcePrepare()
Prepares the AudioCapture for reading audio data by starting buffering of audio data from the device.
Declaration
public void Prepare()
Exceptions
Type | Condition |
---|---|
System. |
Operation failed due to an internal error. |
System. |
The AudioCaptureBase has already been disposed of. |
See Also
View SourceResume()
Resumes buffering audio data from the device.
Declaration
public void Resume()
Exceptions
Type | Condition |
---|---|
System. |
The current state is Idle. |
System. |
The AudioCaptureBase has already been disposed of. |
See Also
View SourceUnprepare()
Unprepares the AudioCapture.
Declaration
public void Unprepare()
Exceptions
Type | Condition |
---|---|
System. |
Operation failed due to an internal error. |
System. |
The AudioCaptureBase has already been disposed of. |
See Also
Events
View SourceStateChanged
Occurs when the state of the AudioCapture is changed.
Declaration
public event EventHandler<AudioIOStateChangedEventArgs> StateChanged
Event Type
Type | Description |
---|---|
System. |