alSndpGetState.3p
758 Bytes
.TH alSndpGetState 3P local "Silicon Graphics, Inc."
.SH NAME
.upperok
alSndpGetState \- get the state (playing, stopping or stopped) of the current target sound
.SH SYNOPSIS
.nf
\f3
.Op c
#include <libaudio.h>
.sp .8v
s32 alSndpGetState(ALSndPlayer *sndp);
.Op
\f1
.fi
.SH PARAMETERS
.TP 10
.I sndp
pointer to a sound player.
.SH DESCRIPTION
Get the play state of the current target sound.
The target sound should be set with a call to
.IR alSndpSetSound(3P).
Possible states are AL_PLAYING,
AL_STOPPING and AL_STOPPED. AL_PLAYING implies that the sound is currently playing, AL_STOPPING implies that the sound is in its release phase and AL_STOPPED implies that the sound is no longer playing.
.SH SEE ALSO
.IR alSndpStop (3P),
.IR alSndpPlay (3P)