Can I play any Buffer only once at a given time?

Posted by mystify on Stack Overflow See other posts from Stack Overflow or by mystify
Published on 2010-05-03T23:35:04Z Indexed on 2010/05/03 23:38 UTC
Read the original article Hit count: 117

Filed under:
|
|

From the OpenAL documentation:

The basic OpenAL objects are a Listener, a Source, and a Buffer. There can be a large number of Buffers, which contain audio data. Each buffer can be attached to one or more Sources

My problem is, that I have one sound file which I need to play multiple times per second, at the same time. The sound is 2 seconds long. So it will overlap.

Would I need multiple filled buffers for this (= multiple times that sound in memory)?

If I would attach one Buffer to multiple Sources, would I be able to play the sound 10 times, overlapping itself, with just one copy in memory? Or would I still have to deal with 10 copies of that sound in memory?

© Stack Overflow or respective owner

Related posts about openal

Related posts about iphone