Search Results for

    Show / Hide Table of Contents

    Class AudioDevice

    Represents an audio output device.

    Inheritance
    object
    AudioDevice
    ALAudioDevice
    XAudioDevice
    Namespace: Evergine.Common.Audio
    Assembly: Evergine.Common.dll
    Syntax
    public abstract class AudioDevice

    Constructors

    AudioDevice()

    Initializes a new instance of the AudioDevice class.

    Declaration
    public AudioDevice()

    Properties

    DefaultListener

    Gets the default listener used by Apply3D(AudioEmitter).

    Declaration
    public abstract AudioListener DefaultListener { get; }
    Property Value
    Type Description
    AudioListener

    MasterVolume

    Gets or sets the global audio volume. Default value is 1.0f.

    Declaration
    public float MasterVolume { get; set; }
    Property Value
    Type Description
    float
    Remarks

    Volume ranges from 0.0f (silence) to 1.0f (full volume). Values beyond these limits are clamped.

    Methods

    CreateAudioBuffer()

    Creates an audio buffer.

    Declaration
    public abstract AudioBuffer CreateAudioBuffer()
    Returns
    Type Description
    AudioBuffer

    The resulting AudioBuffer object.

    CreateAudioSource(WaveFormat)

    Creates a new AudioSource.

    Declaration
    public abstract AudioSource CreateAudioSource(WaveFormat format)
    Parameters
    Type Name Description
    WaveFormat format

    The format of the audio source.

    Returns
    Type Description
    AudioSource

    A new AudioSource instance.

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public abstract void Dispose()

    SetMasterVolume(float)

    Sets the master volume of the device.

    Declaration
    protected abstract void SetMasterVolume(float volume)
    Parameters
    Type Name Description
    float volume

    The new volume level.

    Extension Methods

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