[Openal] Synchronising two sample streams

Marian Schedenig msched at msched.no-ip.org
Tue Apr 10 17:06:06 PDT 2007


On Wednesday 11 April 2007 01:47:25 Daniel PEACOCK wrote:
> A simple solution might be to play both streams (on two different Sources)
> all the time.   One Source will be silent (gain = 0) and the other audible
> (gain = 1).  When you need to switch between the streams, simply raise the
> gain on one Source, and lower it on the other.

Yes, I've thought about that. For two streams it would be sufficient. And for 
now, that's probably all I need. However, I want to expand this later on to 
so I can segue between predefined sets of streams depending on user action. 
In that case, playing all the streams all the time would be overkill (and if 
the audio layer can take the load, I expect either RAM or the streaming 
harddisk access can't).

So it's certainly an option for now, but I would prefer a more "flexible" 
approach.

Thanks nevertheless :)
Marian.

-- 
http://www.musgit.com | http://marian.musgit.com

Hofstadter's law: "It always takes longer than you think,
even when you take account of Hofstadter's law".


More information about the Openal mailing list