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
|
n_alSynSetPitchFormat#include <n_libaudio.h> void n_alSynSetPitch(N_ALVoice *voice, f32 pitch); Arguments
This function is available in the n_audio library. It sets the rate at which a wavetable will be rendered by the synthesizer. The pitch can range from between 0 and 2.0 (but not 0). If the sample rate of the wavetable is the same as the output rate set by the osAiSetFrequency function, then:
Make sure a pitch value of zero is never used. Using it will cause a divide by zero. Call this function (n_alSynSetPitch) from within a voice handler only. See Also n_alSynSetVol n_alSynSetPan n_alSynSetFXMix n_alSynStartVoiceParams osAiSetFrequency
|