0
0

Hey there.

I am new to FMOD, I have only been using it and playing around with it for a couple of days now. Before this, I used DirectSound(shudder).

I am making a 2D game engine, and currently load my textures and other files from .zip files, just to keep the package smaller and keep it nice and clean to look at. However, I have yet to figure out how to load sounds in FMOD Ex from a zip file, I have loaded them using CreateSound and CreateStream, but no idea how to get them from a .zip.

Any help would be appreciated 😛

  • You must to post comments
0
0

There are two options:
Load and decompress the data into memory yourself and call createSound using FMOD_OPENMEMORY or FMOD_OPENMEMORY_POINT. That will make FMOD read the memory location as if it were a file.

Alternatively you can override the file open/read/seek/close callbacks that FMOD uses with System::setFileSystem. This is a little more work but it will work for all files FMOD reads (not just sounds) so that you can put everything in the zip file. This is the standard way of making FMOD read from zip files.

-Pete

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.