Class AudioCaptureBase
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 directly manage the system audio input devices.
C#Copypublic abstract class AudioCaptureBase : IDisposable
- Inheritance
-
AudioCaptureBase
- Derived
- Implements
-
System.IDisposable
Fields
Declaration
C#Copypublic static readonly int MaxSampleRate
Field Value
Type | Description |
---|---|
System.Int32 |
See Also
API Level: 3
Declaration
C#Copypublic static readonly int MinSampleRate
Field Value
Type | Description |
---|---|
System.Int32 |
See Also
API Level: 3
Properties
Declaration
C#Copypublic AudioChannel Channel { get; }
Property Value
Type | Description |
---|---|
AudioChannel |
API Level: 3
Declaration
C#Copypublic int SampleRate { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: 3
Declaration
C#Copypublic AudioSampleType SampleType { get; }
Property Value
Type | Description |
---|---|
AudioSampleType |
API Level: 3
Methods
ApplyStreamPolicy(AudioStreamPolicy)
Sets the sound stream information to the audio input.
Declaration
C#Copypublic void ApplyStreamPolicy(AudioStreamPolicy streamPolicy)
Parameters
Type | Name | Description |
---|---|---|
AudioStreamPolicy | streamPolicy | The AudioStreamPolicy to apply for the AudioCapture. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ObjectDisposedException |
|
System.NotSupportedException |
|
System.ArgumentException | Not able to retrieve information from |
API Level: 3
Declaration
C#Copypublic void Dispose()
API Level: 3
Declaration
C#Copyprotected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
API Level: 3
Declaration
C#Copyprotected void Finalize()
Declaration
C#Copypublic void Flush()
Exceptions
Type | Condition |
---|---|
InvalidOperationException | The current state is Idle. |
ObjectDisposedException | The AudioCaptureBase has already been disposed of. |
API Level: 3
Declaration
C#Copypublic int GetBufferSize()
Returns
Type | Description |
---|---|
System.Int32 |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The AudioCaptureBase has already been disposed of. |
API Level: 3
Declaration
C#Copypublic void Pause()
Exceptions
Type | Condition |
---|---|
InvalidOperationException | The current state is Idle. |
ObjectDisposedException | The AudioCaptureBase has already been disposed of. |
See Also
API Level: 3
Prepare()
Prepares the AudioCapture for reading audio data by starting buffering of audio data from the device.
Declaration
C#Copypublic void Prepare()
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Operation failed due to an internal error. |
ObjectDisposedException | The AudioCaptureBase has already been disposed of. |
See Also
API Level: 3
Declaration
C#Copypublic void Resume()
Exceptions
Type | Condition |
---|---|
InvalidOperationException | The current state is Idle. |
ObjectDisposedException | The AudioCaptureBase has already been disposed of. |
See Also
API Level: 3
Declaration
C#Copypublic void Unprepare()
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Operation failed due to an internal error. |
ObjectDisposedException | The AudioCaptureBase has already been disposed of. |
See Also
API Level: 3
Events
Declaration
C#Copypublic event EventHandler<AudioIOStateChangedEventArgs> StateChanged
Event Type
Type | Description |
---|---|
System.EventHandler<AudioIOStateChangedEventArgs> |