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

## alSynAddPlayer

Syntax

    #include <libaudio.h>
    void alSynAddPlayer(ALSynth *drvr, ALPlayer *client);

Arguments

- drvr is the pointer to the synthesizer driver
- client is the pointer to the client to be added

Explanation
It adds a client player (for example, a sequence player) to the synthesizer driver. A synthesizer can have multiple players. All clients will be called back by the driver when client event times are reached.
Ensure that this function is not called while a call to alAudioFrame is processing. This could happen if alSynAddPlayer is called from within a voice handler, or if the thread that calls alAudioFrame is blocked for some reason.
Note that this function is for use by those who want to develop their own client players. This function is already called from within alSeqpNew and alSndpNew. For information on how to build your own client player, see the audio section of the N64 Programming Manual.
See Also
alSynRemovePlayer
alAudioFrame

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