Possible bbPlaySound problem
Archives Forums/Blitz3D SDK Programming/Possible bbPlaySound problem
| ||
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 ) ); }; |
| ||
I suggest add timer is better than bbChannelPlaying(). Please also read memory leak problem during playsound in link below. http://www.blitzbasic.com/Community/posts.php?topic=71968 Cheers, |