[Openal] alRewind on a Looping Source

Bob Aron baron at apple.com
Tue Jun 8 00:53:26 PDT 2010


Thanks for the responses!

-bob

On Jun 8, 2010, at 12:16 AM, Chris Robinson wrote:

> 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.
> _______________________________________________
> Openal mailing list
> Openal at opensource.creative.com
> http://opensource.creative.com/mailman/listinfo/openal

________________________________
Bob Aron • CoreAudio Team, Apple Inc.
baron at apple.com






More information about the Openal mailing list