sound volume

Blitz3D Forums/Blitz3D Programming/sound volume

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I want to have an engine sound vary with speed and attitude, etc and I've loaded an engine sound and used loopsound and playsound and it's playing okay but soundvolume and soundpitch and channelvolume and channelpitch don't seem to have any effect.

I'm not sure if I should be using the sound or channel commands for one thing. I wish the docs were clearer on that.

I have three global variables at the start of the program; sndEngine, chnEngine and engineVolume. All are specifically declared as global. I then set the value of engineVolume to 0.5. Then, inside a function I change the value of engineVolume but that doesnt seem to take. Since the variable is global I would assume it's still in scope inside the function. Is that not correct? But debuglog shows it to be 0.

I've tried every combination I can think but nothing works. Does anyone have any ideas?

Thanks,
Barry