alSndpSetPitch alSndpSetPitch (function)

alSndpSetPitch, n_alSndpSetPitch

Sets the pitch of the current target sound


#include <libaudio.h>     /* libaudio.h */
void alSndpSetPitch(ALSndPlayer *sndp, f32 pitch);
#include <n_libaudio.h>     /* n_libaudio.h */
void n_alSndpSetPitch(                 f32 pitch);


Pointer to a sound player

pitch value (1 for the original pitch, fractional values for lower pitches (for example, use .5 for an octave lower than the original pitch), 2 for the maximum (an octave higher)). A value greater than 2.0 will rounded off to 2.0 at the playback time.


alSndpSetPitch sets the pitch of the current target sound. Call alSndpSetSound to set the target sound. If the sound is playing, the pitch will be adjusted. If the sound is not playing, this call will effect the pitch of the sound when it is played.

For details on n_audio library, see "Chapter 28: n_audio library" in the N64 Programming Manual.

See Also

alSndpSetVol, alSndpSetPan, and alSndpSetFXMix

Revision History

1999/04/30 Changed Format