Great components! I am having a problem with StockAudioPlayer. I want to start playing a wave file in the middle but when I do, the position counter does not work. The value of StockAudioPlayer.position does not match the position being played.
As a demonstration, I added these lines to the Demo Sound Recorder:
procedure TMainForm.btnPlayClick(Sender: TObject);
StockAudioPlayer.Paused := True;
StockAudioPlayer.Position := 2000;
StockAudioPlayer.Paused := False;
If you record a 10 second clip and click play, the wave file starts playing 2 seconds into the file as it should but the value of StockAudioPlayer.position shows that it starts at zero and ends at 8.
I am using a trackbar to show the position in the file but it does not work because of this if I start playing the wave file in the middle.
Is this intended or a bug?