Class AudioCaptureBase
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.AudioIO.dll
Provides the ability to directly manage the system audio input devices.
C#
Copy
public abstract class AudioCaptureBase : IDisposable
- Inheritance
-
objectAudio
Capture Base
- Derived
- Implements
-
System.
IDisposable
Fields
Declaration
C#
Copy
public static readonly int MaxSampleRate
Field Value
Type | Description |
---|---|
int |
See Also
Declaration
C#
Copy
public static readonly int MinSampleRate
Field Value
Type | Description |
---|---|
int |
See Also
Properties
Declaration
C#
Copy
public AudioChannel Channel { get; }
Property Value
Type | Description |
---|---|
Audio |
Declaration
C#
Copy
public int SampleRate { get; }
Property Value
Type | Description |
---|---|
int |
Declaration
C#
Copy
public AudioSampleType SampleType { get; }
Property Value
Type | Description |
---|---|
Audio |
Declaration
C#
Copy
public double Volume { get; set; }
Property Value
Type | Description |
---|---|
double | The default value is 1.0. |
Remarks
If the value is less than 1.0, the loudness of recorded data will be decreased.
If the value is greater than 1.0, the loudness of recorded data will be increased.
Note that the volume can be clipped if the value is greater than 1.0 and the loudness of original recorded data is high enough.
Exceptions
Type | Condition |
---|---|
System. |
The AudioCapture has already been disposed. |
Methods
ApplyStreamPolicy(AudioStreamPolicy)
Sets the sound stream information to the audio input.
Declaration
C#
Copy
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 |
Declaration
C#
Copy
public void Dispose()
Declaration
C#
Copy
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. |
Declaration
C#
Copy
protected ~AudioCaptureBase()
Declaration
C#
Copy
public void Flush()
Exceptions
Type | Condition |
---|---|
System. |
The current state is Idle. |
System. |
The AudioCaptureBase has already been disposed of. |
Declaration
C#
Copy
public int GetBufferSize()
Returns
Type | Description |
---|---|
int | The buffer size of audio data captured. |
Exceptions
Type | Condition |
---|---|
System. |
The AudioCaptureBase has already been disposed of. |
Declaration
C#
Copy
public void Pause()
Exceptions
Type | Condition |
---|---|
System. |
The current state is Idle. |
System. |
The AudioCaptureBase has already been disposed of. |
See Also
Prepare()
Prepares the AudioCapture for reading audio data by starting buffering of audio data from the device.
Declaration
C#
Copy
public void Prepare()
Exceptions
Type | Condition |
---|---|
System. |
Operation failed due to an internal error. |
System. |
The AudioCaptureBase has already been disposed of. |
See Also
Declaration
C#
Copy
public void Resume()
Exceptions
Type | Condition |
---|---|
System. |
The current state is Idle. |
System. |
The AudioCaptureBase has already been disposed of. |
See Also
Declaration
C#
Copy
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
Declaration
C#
Copy
public event EventHandler<AudioIOStateChangedEventArgs> StateChanged
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><Audio |