The Dink Network

Sound Crash

July 28th 2009, 05:43 AM
dragon.gif
Quiztis
Peasant He/Him Sweden bloop
Life? What's that? Can I download it?! 
Got a fancy .wav I want in my DMOD. I add the sound line in START.C
load_sound("swoosh.wav",51);
The game crashes on startup. Is there some type of .wav files Dink.exe can't handle?
July 28th 2009, 05:49 AM
custom_skull.gif
Skull
Peasant He/Him Finland bloop
A Disembodied Sod 
I'm not sure if this will cause the problem, but try to put space before the "51".

EDIT: Also, are you sure that the wav file is called "swoosh" in the Sounds folder?
July 28th 2009, 05:52 AM
dragon.gif
Quiztis
Peasant He/Him Sweden bloop
Life? What's that? Can I download it?! 
Ok, put a space before 51, crash still occur. Yep, I'm sure that the file is called swoosh.
July 28th 2009, 06:23 AM
slayer.gif
MadStalker
Peasant He/Him Finland
tag line 
What's the sample rate and bit depth? Try saving the file to PCM 16-bit 44,1kHz and see if that helps.

GoldWave.
July 28th 2009, 07:35 AM
dragon.gif
Quiztis
Peasant He/Him Sweden bloop
Life? What's that? Can I download it?! 
Ok, I saved the file as you said and now Dink can play the sound in-game without crashes.