alSynSetVol/ alSynSetVol (function)

alSynSetVol, n_alSynSetVol

Sets the target volume of the specified voice

Syntax

#include <libaudio.h>     /* libaudio.h */

void alSynSetVol(ALSynth *drvr, ALVoice *voice, s16 volume, ALMicroTime delta);
#include <n_libaudio.h>     /* n_libaudio.h */

void n_alSynSetVol(           N_ALVoice *voice, s16 volume, ALMicroTime delta);

Arguments

drvr
Pointer to the synthesizer driver

voice
Pointer to the voice

volume
New target volume

delta
Time to new target volume in microseconds

Description

This function ramps exponentially to the target volume in t microseconds. The volume can range from 0 to 0x7fff. Negative values are undefined.

For details on n_audio library, see "Chapter 28: n_audio library" in the N64 Programming Manual.

Note

Call alSynSetVol from within ALVoiceHandler only.

See Also

alSynSetPan, alSynSetPitch, and alSynSetFXMix

Revision History

1999/04/30 Changed Format