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
Mus - Mus Library
nuSys - NuSystem
os - N64 Operating System
sp - Sprite Library Functions
uh - Host to Target IO
64DD - N64 Disk Drive

Nintendo® Confidential

Mus Library Reference

## MusSetFxType()

Set the audio library FX type.

Syntax

      int MusSetFxType(int fxtype);

Arguments

- fxtype is the audio library FX type

Explanation
Set the global audio library FX type.

This function passes the FX change command to the player via the FIFO buffer. If there is no space free in the FIFO buffer this command will be ignored. The FIFO buffer is emptied every time the player processes sound data.

The fxtype argument sets the audio library FX type from one of the following:

      AL_FX_NONE
      AL_FX_SMALLROOM
      AL_FX_BIGROOM (default)
      AL_FX_CHORUS
      AL_FX_FLANGE
      AL_FX_ECHO

Return Value
Zero (0) if the FIFO command has been ignored, otherwise a none zero value.

Example

      void SetFxType(int fxtype)
      {
        static int last_fxtype;

        if (fxtype==last_fxtype)
          return;
        last_fxtype = fxtype;
        while (MusSetFxType(fxtype)==0);
      }

      void InitCavernLevel(void)
      {
        ...
        SetFxType(AL_FX_ECHO);
        ...
      }

See Also
MusSetSongFxChange()

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-1999
Nintendo of America Inc. All rights reserved
Nintendo and N64 are registered trademarks of Nintendo
Last updated March 1999