Search Results for

    Show / Hide Table of Contents

    Class ALAudioDevice

    Represents an audio output device.

    Inheritance
    object
    AudioDevice
    ALAudioDevice
    Inherited Members
    AudioDevice.MasterVolume
    Namespace: Evergine.OpenAL
    Assembly: Evergine.OpenAL.dll
    Syntax
    public class ALAudioDevice : AudioDevice

    Constructors

    ALAudioDevice()

    Initializes a new instance of the ALAudioDevice class.

    Declaration
    public ALAudioDevice()

    Properties

    ContextHandle

    Gets the context handler of the device.

    Declaration
    public ContextHandle ContextHandle { get; }
    Property Value
    Type Description
    ContextHandle

    DefaultListener

    Gets the default listener used by Apply3D(AudioEmitter).

    Declaration
    public override AudioListener DefaultListener { get; }
    Property Value
    Type Description
    AudioListener
    Overrides
    AudioDevice.DefaultListener

    NativePointer

    Gets the native pointer of the device.

    Declaration
    public nint NativePointer { get; }
    Property Value
    Type Description
    nint

    Renderer

    Gets information about the specific renderer.

    Declaration
    public string Renderer { get; }
    Property Value
    Type Description
    string

    Vendor

    Gets the name of the vendor.

    Declaration
    public string Vendor { get; }
    Property Value
    Type Description
    string

    Version

    Gets the OpenAL version.

    Declaration
    public string Version { get; }
    Property Value
    Type Description
    string

    Methods

    CreateAudioBuffer()

    Creates an audio buffer.

    Declaration
    public override AudioBuffer CreateAudioBuffer()
    Returns
    Type Description
    AudioBuffer

    The resulting AudioBuffer object.

    Overrides
    AudioDevice.CreateAudioBuffer()

    CreateAudioSource(WaveFormat)

    Creates a new AudioSource.

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

    The format of the audio source.

    Returns
    Type Description
    AudioSource

    A new AudioSource instance.

    Overrides
    AudioDevice.CreateAudioSource(WaveFormat)

    Dispose()

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

    Declaration
    public override void Dispose()
    Overrides
    AudioDevice.Dispose()

    SetMasterVolume(float)

    Sets the master volume of the device.

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

    The new volume level.

    Overrides
    AudioDevice.SetMasterVolume(float)

    Extension Methods

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