Compress sound -> bad file
Just tried building an exe from the application I'm working on, and TGF2 kept producing a file that, upon starting, would just show a "File Error" message and close itself (the "created with tgf2" window was still popping up though).
Turns out the problem was "Compress sound" option - if ticked, the exe refused to work. Unticking it resulted in having a working exe again. Running the application from TGF2 (F8) worked normally.
Is this how it's supposed to be?
Re: Compress sound -> bad file
Quote:
Is this how it's supposed to be?
Of course. ;) :D
Could you try to see if that happens with a particular sound and send it to me? (or just send me your application) This option has been working fine for years, I don't see what could cause this issue.
Re: Compress sound -> bad file
Re: Compress sound -> bad file
The format of your sounds is weird, something is wrong, the length of their data doesn't correspond to the size. What tool was used to make them? (if you know it...) Could you send me one of the original WAV files so that I try to import it into MMF2?
Re: Compress sound -> bad file
Checked again - nothing wrong with them in either Winamp, Windows Media Player, other music players I'm using (trackers) or inbuilt player from TGF2 itself - and also they play normally in both the first exe I sent and from TGF2.
In any case the WAVs were created with Audacity / SFXr, the MODs I don't know but I'll send you the originals if this helps or the Extract doesn't work for some reason.
I'll send you a link after I upload all this.
Re: Compress sound -> bad file
I confirm there is a problem with your original sounds, at least this one : Buta...AppleBig (I've checked only this one in depth). An internal header in the file says the size is 48 Kb although the size of the file is 24 Kb.
Media Player 11.0 cannot play this file on my machine (Winamp can play it). It can play only a few sounds from the ones you sent me.
Probably that was causing a buffer overflow in the ADPCM compression routine. I've added a security patch in the next build.
Re: Compress sound -> bad file
Good to know it's patched, thanks.