alSynFreeVoice alSynFreeVoice (function)

alSynFreeVoice, n_alSynFreeVoice

Deallocates a synthesizer voice

Syntax

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

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

void n_alSynFreeVoice(           N_ALVoice *voice);

Arguments

drvr
Pointer to the synthesizer driver

voice
Pointer to the voice structure

Description

It deallocates a synthesizer voice and returns the deallocated voice to the free voice list. Before calling this function, make sure the sound has decayed to zero volume. Failure to ensure that the volume is at zero can result in clicks in the audio output.

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

Note

alSynFreeVoice is called only from within ALVoiceHandler.

See Also

alSynAllocVoice, alSynStartVoice, and alSynStopVoice

Revision History

1999/04/30 Changed Format