alSndpSetPriority/n_alSndpSetPriority alSndpSetPriority (function)

alSndpSetPriority, n_alSndpSetPriority

Sets the priority of a sound

Syntax

#include <libaudio.h>     /* libaudio.h */
void alSndpSetPriority(ALSndPlayer *sndp, ALSndId id, u8 priority);
#include <n_libaudio.h>     /* n_libaudio.h */
void n_alSndpSetPriority(                 ALSndId id, u8 priority);

Arguments

sndp
Pointer to a sound player

id
ID of the sound returned when the sound is allocated by alSndpAllocate

priority
Sound priority

Description

alSndpSetPriority sets the priority of a sound. The sound priority is mapped directly to a voice priority in the Synthesis Driver when the sound is played. When new requests for voices are made to the Synthesis Driver (when a sound or note is played), the function steals the lower priority voices if there are no voices available.

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

See Also

alSndpAllocate

Revision History

1999/04/30 Changed Format