Solved

using the cd-rom to play cd audio

Posted on 1998-12-19
3
157 Views
Last Modified: 2010-04-04
I'm making a program for a cd, and want to be able to play audio tracks from it.  How do I gain control of playing these from inside my program?
0
Comment
Question by:Franker
  • 2
3 Comments
 
LVL 8

Expert Comment

by:ZifNab
ID: 1352113
Hi Franker,

use the component TMediaPlayer from the system palette of Delphi.

Regards, Zif.
0
 

Author Comment

by:Franker
ID: 1352114
I'm sorry, I guess I didn't explain this enough.  I have two problems right now...the more important one of that I need to be able to know where I am in the track.  I'm making a slideshow program with music, and cannot figure out how to decode the TimeFormat so I know where I am in the track so I can display the right images.  The second is that I have 2 cd roms, and I'd rather let TMediaPlayer use my other one.
0
 
LVL 8

Accepted Solution

by:
ZifNab earned 60 total points
ID: 1352115
Hi Franker,

1. Look at this source : http://www.torry.ru/samples/samples/abcdplay.zip (I believe it will give you the information you need, if not just ask!)
2. Use Mediaplayer1.FileName := 'F:'; with F: your second drive letter.

If you still got problems, just ask.

Zif.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

735 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