Solved

Cd player number of tracks

Posted on 1998-04-10
4
118 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

762 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

13 Experts available now in Live!

Get 1:1 Help Now