Click to See Complete Forum and Search --> : CD audio recording
destarus
November 17th, 2005, 02:29 PM
Hello,
I've thus far been able to read in microphone audio using mmsystem calls, but can't seem to read in CD audio, or even Line in for that matter.
The function 'waveInOpen' has a device number parameter, but none of them seem to use my CD drive or line in. Any help would be greatly appreciated.
Thankyou
golanshahar
November 17th, 2005, 03:20 PM
Hello,
I've thus far been able to read in microphone audio using mmsystem calls, but can't seem to read in CD audio, or even Line in for that matter.
The function 'waveInOpen' has a device number parameter, but none of them seem to use my CD drive or line in. Any help would be greatly appreciated.
Thankyou
you can try ::CreateFile(...) (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/createfile.asp) / ::ReadFile(..) (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/readfile.asp)
or you can use DeviceIOControl(..) (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/deviceiocontrol.asp) with IOCTL_CDROM_RAW_READ.
Cheers
mmscg
November 18th, 2005, 07:02 PM
The same code is used to record from any source (mic, cd, etc).
Make sure your Recording Control is set to the source you desire.
This can be done manually or programatically using the Mixer APIs.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.