View Single Post
  #1 (permalink)  
Old 03-11-2008, 09:30 AM
kolbe kolbe is offline
Junior Member
 
Join Date: Sep 2007
Posts: 28
Default mp3 player glitch

Hello again,

I've written a simple mp3 player but have a small glitch. I'm using a trackbar to show/control the position in the mp3 file. Once the file is playing a timer is set so that once a second I update the trackbar position. I would like however for the user to be able to change the position of the trackbar as well using sub trackbar_valuechanged.

What happens however is that when the timer event is triggered the trackbar_valuechanged is subsequently triggered as well because the trackbar value is changed programatically. The sub trackbar_valuechanged then reassigns fmod.position which causes a small tick in the audio playback.

Has anybody found the same problem?

Thanks
Reply With Quote