Sound cache file: how does it work?

Started by Monsieur OUXX, Fri 30/08/2013 15:07:07

Previous topic - Next topic

Monsieur OUXX

I'm trying to have the following workflow:
- We use the same game files for both demo and final game (with a #define for all required code branches)
- We release the game "as is". But before we release the demo, we quickly remove most of the unnecessary resources (rooms, etc.), mostly  to reduce the size.

That's where I need to work out the sound cache file : I've noticed that removing the sound resources from the game (using the Editor) doesn't seem to reduce the final game size. I believe it's because all the sounds are cached in that intemediate file, onto which the game-maker has no direct control.

So, two questions:

1) What are the "real" .wav and .mp3 for? Do they become useless as soon as the sound is imported into the game, usign the Editor? They can be removed without impacting the game?
2) How do I force-update the audio cache file -- to make sure that all sounds removed using the Editor will actually be removed from the final compiled game?

Thanks.

 

Crimson Wizard

Quote from: Monsieur OUXX on Fri 30/08/2013 15:07:07
So, two questions:[/b]
1) What are the "real" .wav and .mp3 for? Do they become useless as soon as the sound is imported into the game, usign the Editor? They can be removed without impacting the game?
The contents of AudioCache folder are similar to sprite cache (acsprset.spr) in how it is used. First it copies all original audio files and puts copies in the cache. When compiling, AGS takes everything from AudioCache, but if something is missing it will look for original source. Basically if you keep AudioCache folder, you may not need source files.

Quote from: Monsieur OUXX on Fri 30/08/2013 15:07:07
2) How do I force-update the audio cache file -- to make sure that all sounds removed using the Editor will actually be removed from the final compiled game?
I cannot reproduce what you say. When I remove audio file from the project and build game, the sound file clearly becomes smaller.
Just to double check - you are looking at the "audio.vox" size, not exe size?

Monsieur OUXX

Quote from: Crimson Wizard on Fri 30/08/2013 15:46:11
Just to double check - you are looking at the "audio.vox" size, not exe size?

Yes I am.
Don't try to reproduce, maybe my description of the issue was inconsistent because I didn't know what I was looking for. What you wrote helps me a lot understanding in what order I should remove stuff from the game.
 

SMF spam blocked by CleanTalk