alSndpSetVol alSndpSetVol (function)

alSndpSetVol, n_alSndpSetVol

Sets the volume of the current target sound

Syntax

#include <libaudio.h>     /* libaudio.h */
void alSndpSetVol(ALSndPlayer *sndp, s16 vol);
#include <n_libaudio.h>     /* n_libaudio.h */
void n_alSndpSetVol(                 s16 vol);

Arguments

sndp
Pointer to a sound player

vol
volume (the maximum volume is 32767 and volume should never be negative)


Description

alSndpSetVol sets the volume of the current target sound. Call alSndpSetSound to set the target sound. If the sound is playing, the volume will be adjusted. If the sound is not playing, this call will affect the volume of the sound when it is played.

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

See Also

alSndpSetPitch, alSndpSetPan, and alSndpSetFXMix

Revision History

1999/04/30 Changed Format