Can I play any Buffer only once at a given time?
- by mystify
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?