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

   

alBnkfNew

Format
#include <libaudio.h>
void alBnkfNew(ALBankFile *ctl, u8 *tbl);


Arguments
  • ctl is the pointer to the control (.ctl) data
  • tbl is the pointer to the wavetable (.tbl) data
What This Function Does
The instrument compiler (ic) creates two files, the control (.ctl) file and the wavetable (.tbl) file. The control file contains instrument performance information and the wavetable file contains the actual wavetable data.

The control file format specifies that references to bank data be stored as offsets from the beginning of the control file. To improve runtime performance, this function converts the offsets to virtual addresses.

Typically, the control (.ctl) file is loaded into DRAM while the wavetable file (.tbl) is left in the Cart ROM because of its size. If your table file is small, you can optionally load that into DRAM to minimize DMA requests while the sequence is playing.

See Also
ic
alSeqpSetBank



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