Search Results for

    Show / Hide Table of Contents

    Interface IMicrophone

    Microphone support.

    Namespace: Evergine.Common.Media
    Assembly: Evergine.Common.dll
    Syntax
    public interface IMicrophone

    Properties

    CurrentSoundHandle

    Gets the current sound handle id.

    Declaration
    uint CurrentSoundHandle { get; }
    Property Value
    Type Description
    uint

    IsConnected

    Gets a value indicating whether there is a microphone available.

    Declaration
    bool IsConnected { get; }
    Property Value
    Type Description
    bool

    IsRecording

    Gets a value indicating whether the microphone is recording now.

    Declaration
    bool IsRecording { get; }
    Property Value
    Type Description
    bool

    true if this instance is recording; otherwise, false.

    Methods

    GetRecordedSound()

    Get a soundbase object.

    Declaration
    SoundBase GetRecordedSound()
    Returns
    Type Description
    SoundBase

    The recorded sound.

    Start()

    Starts the record.

    Declaration
    void Start()

    Start(Stream)

    Starts the record in a custom file.

    Declaration
    void Start(Stream fileStream)
    Parameters
    Type Name Description
    Stream fileStream

    Stream of the recorded file.

    Stop()

    Stops the record.

    Declaration
    void Stop()

    Events

    DataAvailable

    Event launched when there is data available.

    Declaration
    event EventHandler<MicrophoneDataEventArgs> DataAvailable
    Event Type
    Type Description
    EventHandler<MicrophoneDataEventArgs>

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX