WolRon, Malice,
To narrow down the problem I reduced my code to its simplest state, ie. just loading the sound into a variable with LoadSound outside the main program loop (with no alterations to sound volume etc.) and then within the program loop played the sound using PlaySound (with reference to a channel) every time the mouse was clicked. The same sudden jumps in volume still occurred!
So no idea what's going on there. Anyone know?
I am happy to announce though that by executing StopChannel with reference to the channel in question just before playing the sound seems to fix the volume jump problem. Hooray!
I'd still like to know why these volume jumps occur though.
Malice,
Hmm.. if your 'channels are re-used and overwritten' theory holds true then that would most likely be the reason for my troubles as I am sometimes using hundreds of channels at any one time.
How many sound channels are available to Blitz?
To narrow down the problem I reduced my code to its simplest state, ie. just loading the sound into a variable with LoadSound outside the main program loop (with no alterations to sound volume etc.) and then within the program loop played the sound using PlaySound (with reference to a channel) every time the mouse was clicked. The same sudden jumps in volume still occurred!
So no idea what's going on there. Anyone know?
I am happy to announce though that by executing StopChannel with reference to the channel in question just before playing the sound seems to fix the volume jump problem. Hooray!
I'd still like to know why these volume jumps occur though.
Malice,
Hmm.. if your 'channels are re-used and overwritten' theory holds true then that would most likely be the reason for my troubles as I am sometimes using hundreds of channels at any one time.
How many sound channels are available to Blitz?