« Return to Thread: Sync sources

Sync sources

by Yannick-7 :: Rate this Message:

Reply to Author | View in Thread

Hi,

I was looking for information how to sync several sources and I came into the following posts from March 2004:
http://opensource.creative.com/pipermail/openal/2004-March/007357.html 
http://opensource.creative.com/pipermail/openal/2004-March/007360.html

That part was very interesting:

=============

> Question 1: What options if any are available if any to synchronize
> playback of samples?
...
> For example: can I play two samples at
> *exactly* the same time, can I then play a third sample at the exact
> time the first two samples loop? My initial impression is that this is
> not possible elegantly?

You can ask that two or more sources start playing at the same time by
using the alSourcePlayv call, handing in a vector to multiple sources. 
The individual implementation may or may not be able to actually start all
the sources at _exactly_ the same time, but it will be close.

The "playing a third sample at the exact time the first two samples loop"
case can't be handled in an elegant way at this time -- you're going to
end up with imprecise (not sample accurate) timing no matter what you do.

=============

Could someone tell me if this kind of issue can be solved now ?
I'm new to OpenAL and I would appreciate some hints if any.

Thanks.

--
ian


_______________________________________________
Openal mailing list
Openal@...
http://opensource.creative.com/mailman/listinfo/openal

 « Return to Thread: Sync sources