Load sound files from .zip

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
gingerheadman
Posts: 18
Joined: Sat Oct 03, 2009 7:14 am
Location: Brisbane, Australia
Contact:

Load sound files from .zip

Post by gingerheadman »

Hi

I was just wondering if anyone knows how to load OpenAL sound files from a .zip archive. I already know how to use .zip archives in Irrlicht with device->getFileSystem()->addZipFileArchive("somezipfile.zip") but unfortunately this only works for files used by Irrlicht such as 3d models, textures, shaders, etc but not sounds. So does anyone know what I can do if I want to store all the files used by my game inside a zip/pk3 file?
Last edited by gingerheadman on Sat Jan 02, 2010 12:51 pm, edited 1 time in total.
My website - Miscreant Software
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You need a possibility to play from RAM, so you can load the file to RAM from the zip file first, and then pass that memory area to OpenAL.
gingerheadman
Posts: 18
Joined: Sat Oct 03, 2009 7:14 am
Location: Brisbane, Australia
Contact:

Post by gingerheadman »

Thanks for that :D. I'm trying to work out how to do that right now and I'll post again if I can get it to work.
My website - Miscreant Software
Post Reply