Err spStartPlaying (SPPlayer *player, const TagArg *samplerTags)
Err spStartPlayingVA (SPPlayer *player, uint32 samplerTag1, ...)
spStartReading()
prefills the spooler buffers. This function should therefore be called some time after calling spStartReading()
.
Calling this function starts the process of signals arriving which need to be serviced with spService()
. This function causes the SP_STATUS_F_PLAYING flag to be set.
Call spStop()
to manually stop or wait for playback to finish by checking spGetPlayerStatus()
after calling spService()
.
spStartReading()
is that you won't have any control over the precise time that playback begins. In that case, playback would start as soon as spStartReading()
has read a buffer's worth of data. The player also might starve briefly if the 2nd buffer weren't ready before the first one finished.
Multiple calls to spStartPlaying()
without an intervening stop of some kind (spStop()
or marker causing a stop) cause stuttered sound output.
A call to spStartPlaying()
will supercede a previous call to spPause()
.
spStartReading
(),spStop(),spService(),spGetPlayerStatus()