Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.AudioIO.dll
- API Level:
- 3
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/recorder
- Feature:
- http://tizen.org/feature/microphone
Provides the ability to directly manage the system audio input devices.
public abstract class AudioCaptureBase : IDisposable
- Inheritance
-
- Derived
-
Fields
View Source
Specifies the maximum value allowed for the audio capture, in Hertz (Hz).
Declaration
public static readonly int MaxSampleRate
Field Value
API Level: 3
View Source
Specifies the minimum value allowed for the audio capture, in Hertz (Hz).
Declaration
public static readonly int MinSampleRate
Field Value
API Level: 3
Properties
View Source
Gets the channel type of the audio input data stream.
Declaration
public AudioChannel Channel { get; }
Property Value
API Level: 3
View Source
Gets the sample rate of the audio input data stream, in Hertz (Hz).
Declaration
public int SampleRate { get; }
Property Value
API Level: 3
View Source
Gets the sample type of the audio input data stream.
Declaration
public AudioSampleType SampleType { get; }
Property Value
API Level: 3
View Source
Gets or sets the volume of the audio input data stream.
Declaration
public double Volume { get; set; }
Property Value
Type |
Description |
Double |
The default value is 1.0.
The valid range is greater than or equal to 0.0 and less than or equal to 2.0.
Note that if the value is less than 0.0, it will be set 0.0 and if the value is greater than 2.0, it will be set 2.0.
|
API Level: 8
Methods
View Source
Sets the sound stream information to the audio input.
Declaration
public void ApplyStreamPolicy(AudioStreamPolicy streamPolicy)
Parameters
API Level: 3
Declaration
API Level: 3
Declaration
protected 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
View Source
Finalizes an instance of the AudioCaptureBase class.
Declaration
protected void Finalize()
View Source
Flushes and discards buffered audio data from the input stream.
Declaration
API Level: 3
View Source
Gets the size allocated for the audio input buffer.
Declaration
public int GetBufferSize()
Returns
Type |
Description |
Int32 |
The buffer size of audio data captured.
|
API Level: 3
View Source
Pauses buffering of audio data from the device.
Declaration
API Level: 3
View Source
Prepares the AudioCapture for reading audio data by starting buffering of audio data from the device.
Declaration
API Level: 3
View Source
Resumes buffering audio data from the device.
Declaration
API Level: 3
Declaration
API Level: 3
Events
View Source
Occurs when the state of the AudioCapture is changed.
Declaration
public event EventHandler<AudioIOStateChangedEventArgs> StateChanged
Event Type
API Level: 3
Extension Methods