I have added SetPosition and GetPosition to StockAudioPlayer class.
Please, Kambiz can you check if the algorith is ok.
The modifications are in WavePlayers.
I have also modified :
function Percent2DWVolume(prVol: WORD): DWORD;
begin
Result := 0;
Result := MulDiv(prVol, $FFFF, 100);
Result := Result Or (Result ShL 16);
end;
because when we changed the volume, all sound was in left speaker.
And I have also developped a MP3Storage class that is inherited of TWaveStorage that Load MP3 to Stream and save Stream to MP3 file.
The component icon is in WaveReg.dcr
This is a beta version.
I'm currently develop TStockAudioPlayerRecorder that must allow to do a TMediaPlayer.
Thanks.
PS : Excuse for my very bad english, I am French.