Solved

using the cd-rom to play cd audio

Posted on 1998-12-19
3
159 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
[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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
When I am typing into a TEdit last word repeats 7 179
find a node in VST 2 93
How to insert .png images to TClientDataSet .cds file? 2 85
Delphi android app hide keyboard 3 84
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

751 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