Forums
How do you move a track bar while playing audio - Printable Version

+- Forums (http://mitov.com/forum)
+-- Forum: VCL Components (/forum-6.html)
+--- Forum: AudioLab (/forum-14.html)
+--- Thread: How do you move a track bar while playing audio (/thread-3505.html)



How do you move a track bar while playing audio - whitehairedgeezer - 12-09-2016 09:18 AM

When using Delphi7 and Audiolabs ALDSAudioplayer I could find the total number of samples in a file and using Currentsample (which then gave the number of the sample between Startsample to Endsample) I could calculate where the trackbar should be moved to in the Onprogress procedure. Using Berlin,and ALLAVAudioPlayer, the value of Currentsample soon goes above Endsample so I am not sure what it is measuring - certainly not the count of samples. Samplecount gives the same value as Endsample (why?) I can find no way of finding the position reached in the file so I cannot move my trackbar. Any help would be appreciated