Solved

Cd player number of tracks

Posted on 1998-04-10
4
122 Views
Last Modified: 2010-04-06
I wish to know how to display the number of tracks on a cd and the total time for each of those tracks.
This question has been bothering me for weeks.
0
Comment
Question by:cando
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 2

Expert Comment

by:rene100
ID: 1361365
Hi cando

simply use the TMediaPlayer.tracks property to get the number of tracks and the TMediaPlayer.TrackLength(NumberOfTrack) property to get the length of a track

hope this helps

rene100
0
 

Expert Comment

by:sabog7
ID: 1361366
cando
why dont u try http://www.swiftsoft.de/mmtools.html...
i assure u more than ur points it will help u a lot......
 
0
 

Author Comment

by:cando
ID: 1361367
I know about the MediaPlayer.tracks and tracklength, I haven't been able to get those to work, If some one could give me an example it would be very helpfull.
0
 
LVL 2

Accepted Solution

by:
rene100 earned 200 total points
ID: 1361368
hi cando

you have first to select the type of device you wants to use, in your case set the mediaplayer.devicetype to dtCDAudio (or you can try dtAutoSelect, but I had problems with that)
then you can either set the AutoOpen property to true or open the device with MediaPlayer.open, i.e. in the formCreate event.
you now should be able to get the tracks/tracklength with the solution above.
remember to close the device with MediaPlayer.close when you terminate the program

regards
rene100
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi 2 92
Firemonkey webbrowser scrollbars ? 1 73
can i put an image from resource into image tag ? 6 42
Delphi Seattle StructureView color 1 35
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question