This site is temporarily down. Please come back. TMediaPlayer - Which is the current CD Track?
DelphiFAQ Home Search:

TMediaPlayer - Which is the current CD Track?

 

commentsThis article has not been rated yet. After reading, feel free to leave comments and rate it.

This will show current track and time of your music CD.

uses
  MMSystem;

procedure ShowCDTrack;
var
  Trk,
  Min,
  Sec : word;
begin 
  With MediaPlayer1 do 
  begin 
    Trk := mci_TMSF_Track (Position); 
    Min := mci_TMSF_Minute (Position); 
    Sec := mci_TMSF_Second (Position); 
    Label1.Caption := Format ('%.2d', [Trk]); 
    Label2.Caption := Format ('%.2d:%.2d', [Min, Sec])
  end
end. 

Content-type: text/html

Comments:

2007-01-16, 14:30:43
anonymous from China  

free isos play station <a href=' http://free-playsta..ation.html '> get a free playstation </a> [link url= http://free-playsta..ation.html ] get a free playstation [/link]
2008-01-06, 02:57:39
anonymous from Israel  
I recwieved a request to do both:

record a speach (at a given point in time) and a second after the start of recieving
a voice display a string.

I have 2 questions:

1. How do I initialize a voice file that is new, using TMediaPlayer.
2. After the start of recording how can I recognize the actual start of the voice.

Thanks,
For a quick reply

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: