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_alSynNew

Syntax
#include <n_libaudio.h>
void n_alSynNew(ALSynConfig *c);

Arguments

  • c is the pointer to the synthesizer configuration

Explanation
This function is available in the n_audio library. It initializes (registers) a new synthesizer driver based on the arguments specified in the configuration structure. Note that n_audio allows only one synthesizer driver to be active (registered) at any one time.

This function allocates memory from the heap for voices and driver objects. Always call this function before calling n_alAudioFrame.

The configuration structure arguments are:

  • maxVVoices is the maximum number of virtual voices.
  • maxPVoices is the maximum number of physical voices.
  • maxUpdates is the maximum number of pending parameter updates.
  • maxFXBusses is the maximum number of auxiliary effect busses. (Currently this value is ignored, and a maximum of one bus is imposed.)
  • dmaproc is the pointer to procedure to use when initializing DMA callbacks.
  • heap is the pointer to audio system memory heap.
  • outputRate is the number of samples per second for the synthesizer to generate.
  • fxType is the type of effect to use. It can be AL_FX_NONE, AL_FX_SMALLROOM, AL_FX_BIGROOM, AL_FX_ECHO, AL_FX_CHORUS, AL_FX_FLANGE or AL_FX_CUSTOM.
  • params is the pointer to an array of arguments to be used in the case of AL_FX_CUSTOM. For more information on these arguments, see the Nintendo 64 Programming Manual audio section that explains how to create custom effects.
See Also
n_alSynDelete



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 April, 1999