alSndpNew (function)

alSndpNew, n_alSndpNew

Initializes a sound player

Syntax

#include <libaudio.h>     /* libaudio.h */
void alSndpNew(    ALSndPlayer *sndp, ALSndpConfig *config);
#include <n_libaudio.h>     /* n_libaudio.h */
void n_alSndpNew(N_ALSndPlayer *sndp, ALSndpConfig *config);

Arguments

sndp
Pointer to the sound player structure to initialize

config
Pointer to the sound player configuration structure

Description

alSndpNew initializes the sound player specified by the sndp argument for the configuration specified by the config argument and signs into the synthesis driver as a client. Note that it allocates memory from the (initialized) ALHeap referenced by the config structure.

config argument of the ALSndpConfig structure determine how the number of resources are allocated in the heap region.

maxSounds
Maximum number of sounds that can be allocated to the player.

maxEvents
Maximum number of internal events to support.

heap
Pointer to an initialized audio heap.

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

See Also

alHeapNew, alHeapAlloc

Revision History

1999/04/30 Changed Format