Catchsound
Catchsound
Hy out there,
I try to implement the packer routines into my game.
I successfully compacted all my graphics and sounds in one file.
The Graphics are working.
But I can't here any Sounds anymore.
The routine Catchsound gives me no errors back.
Should it be possible to put grafics and sounds in the same file?
I try to implement the packer routines into my game.
I successfully compacted all my graphics and sounds in one file.
The Graphics are working.
But I can't here any Sounds anymore.
The routine Catchsound gives me no errors back.
Should it be possible to put grafics and sounds in the same file?
I mean, just test CatchSound on one file, like this (to verify than the routine works correctly):
Code: Select all
CatchSound(0, ?My Sound)
PlaySound(0)
Delay(5000)
DataSection
MySound:
IncludeBinary "Sound.wav"
So it's probably the packer which has a problem. I will investigate, thank for your tests ! For now, you can still create a little routines to put all your sounds in one file if you want (with WriteLong() to write the length of the file, then WriteData() to write the sound etc. Uses ReadLong/ReadData() to read them back).

