[Openal] alRewind on a Looping Source
Chris Robinson
chris.kcat at gmail.com
Tue Jun 8 00:16:49 PDT 2010
On Monday, June 07, 2010 5:40:13 pm Jason Daly wrote:
> I thing 1 was the original intent (setting the source to STOPPED first
> kind of implies this).
>
> alSourceRewind() never seemed to have much use, even early on.
I would think 1, too, because calling alSourceRewind on a non-looping source
that's in the middle of play won't rewind and continue playing. I tend to
think of it as rewinding the play state back to AL_INITIAL, not rewinding the
play offset to 0 (which just happens as a side effect of stopping).
FWIW, I tend to treat alSourceRewind as just like alSourceStop, except it puts
the source into an AL_INITIAL state instead of AL_STOPPED (which can be a
useful distinction, sometimes), and it sets 0 buffers processed instead of the
whole queue. A "rewind and continue play" action can be accomplished by simply
setting the source offset to 0.
More information about the Openal
mailing list