alSndpSetVol alSndpSetVol (function)

alSndpSetVol, n_alSndpSetVol

Sets the volume of the current target sound


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


Pointer to a sound player

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


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