alSndpSetSound (function)

alSndpSetSound, n_alSndpSetSound

Sets the current target sound in a sound player

Syntax

#include <libaudio.h>     /* libaudio.h */
void alSndpSetSound(ALSndPlayer *sndp, ALSndId id);
#include <n_libaudio.h>     /* n_libaudio.h */
void n_alSndpSetSound(                 ALSndId id);

Arguments

sndp
Pointer to a sound player

id
a unique number that identifies a sound within a sound player; this id is returned when the sound is allocated to the sound player

Description

alSndpSetSound sets the current target to the sound specified by the id argument. Future calls to routines that set arguments refer to the target sound.

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

See Also

alSndpGetSound, alSndpAllocate

Revision History

1999/04/30 Changed Format