alSndpGetState (function)

alSndpGetState, n_alSndpGetState

Gets the state (playing, stopping, or stopped) of the current target sound

Syntax

#include <libaudio.h>     /* libaudio.h */
s32 alSndpGetState(ALSndPlayer *sndp);
#include <n_libaudio.h>     /* n_libaudio.h */
s32 n_alSndpGetState(void);

Arguments

sndp
Pointer to a sound player

Description

alSndpGetState gets the play state of the current target sound. To set the target sound, call alSndpSetSound. Possible states are AL_PLAYING, AL_STOPPING, and AL_STOPPED. AL_PLAYING means the sound is currently playing, AL_STOPPING means the sound is in its release phase, and AL_STOPPED means the sound is no longer playing

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

See Also

alSndpStop, alSndpPlay

Revision History

1999/04/30 Changed Format