alSynStopVoice alSynStopVoice (function)

alSynStopVoice, n_alSynStopVoice

Stops generating audio samples with the specified voice

Syntax

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

void alSynStopVoice(ALSynth *drvr, ALVoice *voice);
#include <n_libaudio.h>     /* n_libaudio.h */

void n_alSynStopVoice(           N_ALVoice *voice);

Arguments

drvr
Pointer to the synthesizer driver

voice
Pointer to a voice

Description

This stops generating audio samples with the specified voice. You should fade the volume of the voice to zero before stopping it. If you don't, clicks in the audio output can occur.

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

Note

Call alSynStopVoice from within ALVoiceHandler only.

See Also

alSynAllocVoice, alSynStartVoice, and alAudioFrame

Revision History

1999/04/30 Changed Format