ive tried and tried but how can i free a sound? for instance, ill have a function start the sound like this...
bgm = PlaySound("bgm.mp3", 1)
then later ill want to stop the sound and free it like this...
StopChannel bgm
FreeSound bgm
but when i do that, it stops the sound, but crashes when it tries to free the sound and tells me that the "bgm" handle doesnt exist.
help me please! its driving me crazy that i cant figure it out
bgm = PlaySound("bgm.mp3", 1)
then later ill want to stop the sound and free it like this...
StopChannel bgm
FreeSound bgm
but when i do that, it stops the sound, but crashes when it tries to free the sound and tells me that the "bgm" handle doesnt exist.
help me please! its driving me crazy that i cant figure it out