Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 162
  • Last Modified:

using the cd-rom to play cd audio

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
Franker
Asked:
Franker
  • 2
1 Solution
 
ZifNabCommented:
Hi Franker,

use the component TMediaPlayer from the system palette of Delphi.

Regards, Zif.
0
 
FrankerAuthor Commented:
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
 
ZifNabCommented:
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!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now