Multiple sources for one buffer/shared buffers

oln

16-11-2010 20:10:44

Is this possible/implemented yet, or will it be? In the game I'm working on there will be several sources using the same sound, often playing at the same time, so not having to have a sound data copy in memory for each object would be nice.

stickymango

16-11-2010 21:18:48

This is implemented already for static sounds.

oln

22-11-2010 20:12:24

How do make sounds that use a shared buffer then? (I did RTFM, but didn't really figure it out from that)
Thanks again for an awesome library

stickymango

23-11-2010 10:09:13

If you point your create function to the same sound file when you create your individual sounds, they will automatically share the buffer data, you don't need to explicitly handle this.