📧 Message Board Archive

Playing a WAV
Okey dokey, I've got a WAV set to play when my title screen comes up, but after about 10 seconds it stops playing



:(
Re: Playing a WAV
: Okey dokey, I've got a WAV set to play when my title screen comes up, but after about 10 seconds it stops playing



: :(



I think I know what it is. Some sound programs, like windows sound recorder don't save the extra data (like name of the track and copyright info) in the wave but for some reason Dink expects to find that in long waves. So you may need another sound program that can put the extra info in.
Re: Playing a WAV
OK, I'll see if I can slap some information on that WAV.



Its about a minute and a half long, i had to take it down to like 22khz 8-bit just to make it under 3 MB.

Damn seth for not coding MP3 support!!!
Re: Playing a WAV
: OK, I'll see if I can slap some information on that WAV.



: Its about a minute and a half long, i had to take it down to like 22khz 8-bit just to make it under 3 MB.



: Damn seth for not coding MP3 support!!!





OK, i got the whole thing playing, no I just cant stop it.



How Do i find the sound_bank of a sound i played using the code



playsound(50,22050,0,0);



And the sound must be stopped in a script called up by the one the playsound command is in

Re: Playing a WAV
: OK, i got the whole thing playing, no I just cant stop it.



: How Do i find the sound_bank of a sound i played using the code



: playsound(50,22050,0,0);



: And the sound must be stopped in a script called up by the one the playsound command is in



How about this, use playsound(50,22050,0,1); (1 in the "survive" field.) then use kill_all_sounds(); to get rid of it. The other way would be to do &bank = playsound(50,22050,0,0); then use sound_set_kill(&bank); to get rid of it. &bank would have to be global if the two commands aren't in the same script.
Re: Playing a WAV
Thanks, bud, it works :)



BTW are you Paul Pliska that used to be here back in the day?