Solved

using the cd-rom to play cd audio

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
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…

746 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

12 Experts available now in Live!

Get 1:1 Help Now