Class AudioRecorder

    Definition

    Namespace:
    Tizen.Multimedia
    Assembly:
    Tizen.Multimedia.Recorder.dll

    Provides the ability to control audio recording.

    public class AudioRecorder : Recorder, IDisposable
    Inheritance
    object
    Recorder
    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
    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

    See Also
    GetSupportedAudioCodecs()
    GetSupportedFileFormats()
    GetSupportedFileFormats(RecorderAudioCodec)
    SetFormatAndCodec(RecorderAudioCodec, RecorderFileFormat)

    Methods

    View Source

    SetFormatAndCodec(RecorderAudioCodec, RecorderFileFormat)

    Sets the audio codec and the file format for recording.

    Declaration
    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

    See Also
    GetSupportedAudioCodecs()
    GetSupportedFileFormats()
    GetSupportedFileFormats(RecorderAudioCodec)
    Start(string)

    Implements

    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX