sounds

BlitzPlus Forums/BlitzPlus Beginners Area/sounds

Newcomer(Posted 2008) [#1]
my programs won't do sounds or music...
whenever I try to make them do it, it just ignores that line of code (I did not write it as a comment), surely if it did not know where in the computers memory it is, it would show some error instead of just ignoring code? please post and help in some way


JazzieB(Posted 2008) [#2]
Source code? So we can see what you're doing wrong.

The correct way (or one of them)...

soundFX=LoadSound("sound.wav")
soundChannel=PlaySound(soundFX)



Newcomer(Posted 2008) [#3]
soundchannel, what's that???????


Matty(Posted 2008) [#4]
soundchannel is simply an integer variable which contains a reference to the 'channel handle' of the sound being played with 'play sound'. It could have been called anything, for example junkvariablename=playsound(soundfx) could have done the exact same thing.