Class AudioRecorder

Definition

Namespace:
Tizen.Multimedia
Assembly:
Tizen.Multimedia.Recorder.dll
API Level:
4

Provides the ability to control audio recording.

C#
Copy
public class AudioRecorder : Recorder, IDisposable
Inheritance
System.Object
AudioRecorder
Implements
System.IDisposable

Constructors

View Source

AudioRecorder(RecorderAudioCodec, RecorderFileFormat)

Initializes a new instance of the AudioRecorder class with the specified audio codec and file format.

Declaration
C#
Copy
public AudioRecorder(RecorderAudioCodec audioCodec, RecorderFileFormat fileFormat)
Parameters
Type Name Description
RecorderAudioCodec audioCodec

The codec for audio encoding.

RecorderFileFormat fileFormat

The format of result file.

Exceptions
Type Condition
System.InvalidOperationException

An internal error occurred.

System.NotSupportedException

A required feature is not supported.
-or-
audioCodec is not supported.
-or-
fileFormat is not supported with the specified audio codec.

System.ArgumentException

audioCodec is not valid.
-or-
fileFormat is not valid.

System.ArgumentOutOfRangeException

audioCodec is None

API Level: 4
Feature: http://tizen.org/feature/media.audio_recording

Methods

View Source

SetFormatAndCodec(RecorderAudioCodec, RecorderFileFormat)

Sets the audio codec and the file format for recording.

Declaration
C#
Copy
public void SetFormatAndCodec(RecorderAudioCodec audioCodec, RecorderFileFormat fileFormat)
Parameters
Type Name Description
RecorderAudioCodec audioCodec

The codec for audio encoding.

RecorderFileFormat fileFormat

The format of result file.

Exceptions
Type Condition
System.NotSupportedException

audioCodec is not supported.
-or-
fileFormat is not supported with the specified audio codec.

System.ArgumentException

audioCodec is not valid.
-or-
fileFormat is not valid.

System.ArgumentOutOfRangeException

audioCodec is None

API Level: 4

Implements

System.IDisposable