Solved

Cd player number of tracks

Posted on 1998-04-10
4
119 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
problem when i try to pack my dll file with upx 9 71
Machine not responding during CopyFile() 3 88
Delphi TcxGrid group footer summary 3 200
LAN or WAN ? 11 81
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
A short film showing how OnPage and Connectwise integration works.

932 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now