I play a simple wav when the user clicks on a button and this works fine until after a number of clicks the playback fails on the right speaker and after that continues just on the left.
So I wrote a simple loop (again) to test this and sure enough after around 20 odd plays you hear a slight 'popping' through the speakers and thereafter playback is on the left channel only.
I dont know a great deal about the audio side of things. Any ideas?
BBSound soundBuffer = bbLoadSound( "test.wav" );
while (true)
{
BBChannel soundChannel = bbPlaySound( soundBuffer );
while( bbChannelPlaying( soundChannel ) );
};
So I wrote a simple loop (again) to test this and sure enough after around 20 odd plays you hear a slight 'popping' through the speakers and thereafter playback is on the left channel only.
I dont know a great deal about the audio side of things. Any ideas?
BBSound soundBuffer = bbLoadSound( "test.wav" );
while (true)
{
BBChannel soundChannel = bbPlaySound( soundBuffer );
while( bbChannelPlaying( soundChannel ) );
};