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
ApplyEffectLoop(SoundMixerApplyEffectLoopInput)
Applies a registered effect loop to a source group/channel, controlling its dry/wet routing and the loop output level. Captures previous values for later restore when requested.
Declaration
void ApplyEffectLoop(SoundMixerApplyEffectLoopInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| SoundMixerApplyEffectLoopInput | input | The apply request describing the loop, source, dry/wet and parameter names. |
ClearEffectLoop(SoundMixerClearEffectLoopInput)
Clears a previously applied effect loop from a source group/channel, restoring the captured previous mixer values when requested.
Declaration
void ClearEffectLoop(SoundMixerClearEffectLoopInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| SoundMixerClearEffectLoopInput | input | The clear request describing the loop and source. |
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. |