I've finally got around to doing sound in Blitz, after taming Tokamak, I thought it would be easy, but...
I just can't get anything to play.
to test, I put this in the main body (before the loop)
///
sound1 = LoadSound("x.wav")
PlaySound(sound1)"
///
where x.wav is in the same directory as my bb file. No luck. I though perhaps 2D sound was disabled in Blitz3D in favour of the 3D 'listener method'.
So I tried this:
///
chime = Load3DSound (" x.wav")
mic = CreateListener(cam2)
EmitSound(chime,cam2)
///
now I realise that blitz doesn't check for the existence of "x.wav" (there's no 'sound does not exist' error message), but the files is there and present.
Any help would be appeciated, as having blitz mute isn't great!
I just can't get anything to play.
to test, I put this in the main body (before the loop)
///
sound1 = LoadSound("x.wav")
PlaySound(sound1)"
///
where x.wav is in the same directory as my bb file. No luck. I though perhaps 2D sound was disabled in Blitz3D in favour of the 3D 'listener method'.
So I tried this:
///
chime = Load3DSound (" x.wav")
mic = CreateListener(cam2)
EmitSound(chime,cam2)
///
now I realise that blitz doesn't check for the existence of "x.wav" (there's no 'sound does not exist' error message), but the files is there and present.
Any help would be appeciated, as having blitz mute isn't great!