• Advertisement
Sign in to follow this  

openAL problem

This topic is 4824 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i just started using openAL yesterday. I've made a dll for it because i am using vb for this part of my game. I can play the sounds, and i no there is a limit on them. But i have loaded all the sounds at the beginning of my game which does not work. Is there a way to get around that because i have 400+ sounds and i need a non-laggy way to load and play them. any help would be great thx jake

Share this post


Link to post
Share on other sites
Advertisement
If your sounds are about 50-100kb in size you could just load them when they are played and cache them.

In the sound structure make a timer that will let you unload the sound after some time. Also put a reference count which shows how many objects need that sound and when one such object is created increment this number. When one of these objects is deleted, decrement. If you get 0 then unload the sound.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement