logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface ISoundMixerService

    Interface for the Sound Mixer Service, providing methods to set and get volume levels.

    Namespace: Serenity.SoundMixer.Application.Interfaces
    Assembly: Serenity.SoundMixer.Application.dll
    Syntax
    public interface ISoundMixerService : IService, IFoundationSettings

    Methods

    GetVolume(SoundMixerGetVolumeInput)

    Gets the current volume level for the sound mixer.

    Declaration
    float GetVolume(SoundMixerGetVolumeInput input)
    Parameters
    Type Name Description
    SoundMixerGetVolumeInput input

    The input data transfer object containing the ID.

    Returns
    Type Description
    float

    The current volume level as a float.

    SetVolume(SoundMixerSetVolumeInput)

    Sets the volume level for the sound mixer.

    Declaration
    void SetVolume(SoundMixerSetVolumeInput input)
    Parameters
    Type Name Description
    SoundMixerSetVolumeInput input

    The input data transfer object containing the ID and volume level.

    In this article
    © 2026 Serenity. All Rights Reserved