Re: alRewind on a Looping Source

Bob Aron <[email protected]>
Newsgroups gmane.comp.lib.openal
Message-ID <[email protected]>
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
> [email protected]
> http://opensource.creative.com/mailman/listinfo/openal

________________________________
Bob Aron • CoreAudio Team, Apple Inc.
[email protected]




_______________________________________________
Openal mailing list
[email protected]
http://opensource.creative.com/mailman/listinfo/openal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.