N64® Functions Menu

al - Audio Library Functions
gDP - DP GBI Macros
gdSP - General GBI Macros
gSP - SP GBI Macros
gt - Turbo Microcode RDP
gu - Graphics Utilities
Math - Math Functions
nuSys - NuSystem
os - N64 Operating System
sp - Sprite Library Functions
uh - Host to Target IO
64DD - N64 Disk Drive

Nintendo® Confidential

   

n_alSndpNew

Format
#include <n_libaudio.h>
void n_alSndpNew(N_ALSndPlayer *sndp, ALSndpConfig *config);


Arguments
  • sndp is the pointer to the sound player structure that you want to initialize (register); note that to optimize performance, n_audio allows only one sound player to be registered at any one time.
  • config is the pointer to the sound player configuration structure
What This Function Does
This function is available in the n_audio library. It initializes (registers) the specified sound player 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.

The values in the following data elements of the ALSndpConfig structure determine how much memory is allocated:
  • maxSounds is the maximum number of sounds that can be allocated to the player.
  • maxEvents is the maximum number of internal events to support.
  • heap is a pointer to an initialized audio heap.
See Also
alHeapAlloc



Nintendo® Confidential

Warning: all information in this document is confidential and covered by a non-disclosure agreement. You are responsible for keeping this information confidential and protected. Nintendo will vigorously enforce this responsibility.


Copyright © 1998
Nintendo of America Inc. All rights reserved
Nintendo and N64 are registered trademarks of Nintendo
Last updated January 1998