tags:

views:

82

answers:

3

What is the Microsoft-approved way to extract the raw audio data from an audio CD? I'm hoping to do this with C++ or C.

It's ironic because in XP/Vista/7, there is the IMAPI (Image Mastering API) for writing data, but not for reading it.

Is there a set of API functions for this? Or do I need to send SCSI commands?

A: 

I would use open source for this. Have you looked at the CDEX project? The CDRip.dll in this project may be useful.

R Ubben
I'm kinda looking for a way to access the data *myself* and not through some third party library.
George Edison
Still, you can have a look at its code to see how it works internally (http://cdexos.svn.sourceforge.net/viewvc/cdexos/cdex1/trunk/cdexos/CDRip/).
Matteo Italia
I'll give it a look.
George Edison
+2  A: 

Here are a couple of code samples...

http://www.codeproject.com/KB/audio-video/SimpleAudioCD.aspx

http://www.codeproject.com/KB/cs/csharpripper.aspx

Romain Hippeau
The first link pointed me to what I was looking for - thanks!
George Edison
A: 

The windows audio guy, Larry Osterman, did a whole series about CD Audio playback on his blog (DAE,MCI)

Anders