Page 1 of 1

DeAudioPlayer play back set from concrete position

PostPosted: August 14th, 2007, 1:34 pm
by zaplik
Hallo, how with DeAudioPlayer play back set from concrete position? How position extend at spooling out?

Martin

PostPosted: August 14th, 2007, 3:17 pm
by Kambiz
Sorry, I couldn't get the question. Could you please explain with an example?

PostPosted: August 14th, 2007, 5:51 pm
by Johnny_Bit
wow, englisz langłicz!

I decipher: play from given position

that second one I didn't catch

PostPosted: August 15th, 2007, 8:22 am
by zaplik
Sorry for my English, it is not my langue. Recording has length 1 minutes . I need start play up from 30 seconds. How with it does? Following code for TMEDIAPLAYER:

Code: Select all
procedure TCRForm.JvSlider1StopChanged(Sender: TObject);
begin
  if (MediaPlayer.Mode=mpOpen)or(MediaPlayer.Mode=mpPlaying)or(MediaPlayer.Mode=mpPaused) then
  begin
    MediaPlayer.Position:=JvSlider1.Position;//<<<<<<<<<<< How???
    Label3.Caption := MS2Str(MediaPlayer.Position, msHMS{msAh});
    MediaPlayer.Play;
  end;
end;

This code I need re-write using TDeAudioOut.

PostPosted: August 15th, 2007, 11:50 am
by Kambiz
All audio player components (TAudioPlayer, TStockAudioPlayer, and TLiveAudioPlayer) have a Position property that you can use it like Position property of MediaPlayer. The value of Position property is in milliseconds.

PostPosted: August 17th, 2007, 5:44 pm
by cozturk
Maybe:

"De" means another component which not freeware . (droppy eyes etc..)

PostPosted: August 17th, 2007, 10:50 pm
by Kambiz
cozturk wrote:Maybe:

"De" means another component which not freeware . (droppy eyes etc..)


You are right. Even without "De", TAudioOut is an abstract class in the Wave Audio package.

PostPosted: August 17th, 2007, 10:59 pm
by Kambiz
Here is the link to the source files of the components that zaplik is talking about. :)
http://leenover.homeip.net/delphi/Projects/lnDS/

I didn't look at the code yet, but seems to be a DirectSound project.

PostPosted: August 18th, 2007, 6:11 am
by Johnny_Bit
welll then... this has to be moved.