Page 1 of 1

Ripping Audio CD music to wav-file on hard disc

Posted: Sat Sep 27, 2003 1:57 pm
by merendo
Hi @ll

Does anybody know the location of a library (PB or DLL) which allows to rip Audio CD music from the Audio CD to the hard disc as wav?

Thanks! merendo

Posted: Sat Sep 27, 2003 4:05 pm
by Rings

Posted: Sat Sep 27, 2003 4:21 pm
by Henrik
hi
or you can use mci
This was something i did to see how big a wav file actually got
some of this was form this forum other somewere else

nb. "set capture samplespersec 44100" = high quality (CD music quality)

Code: Select all

Procedure RecordWave(Filename.s,RecordTime)
    RS.s = Space(128)
    DeleteFile(filename)
    i = mciSendString_("open new type waveaudio alias capture", RS, 128, cb)
  i = mciSendString_("set capture samplespersec 44100", RS, 128, cb)
    i = mciSendString_("record capture", RS, 128, cb)
    Delay(RecordTime)
    i = mciSendString_("save capture " + filename, RS, 128, cb)
EndProcedure

MessageRequester("Info","Capture Audio to c:\test.wav",0)
RS.s = Space(128)
ii = mciSendString_("open cdaudio", RS, 128, cb)
i = mciSendString_("set cdaudio time format milliseconds", RS, 128, cb)
i = mciSendString_("play cdaudio", RS, 128, cb)

RecordWave("C:\test.wav",20000) ; 20 sec
MessageRequester("Info","Ready...",0)
i = mciSendString_("close capture", RS, 128, cb) 
i = mciSendString_("stop cdaudio", RS, 128, cb)
i = mciSendString_("close cdaudio", RS, 128, cb)
Ops wrong code edited.
Forgot CD music quality and closing the wav file
should be working now i hope :?
Edit> damn. this is what you'r getting out of copy the wrong source in the first place< :)
well now it should make more sens.

Posted: Sat Sep 27, 2003 5:05 pm
by merendo
Thank you two, i'll try both solutions :)

Posted: Sat Sep 27, 2003 7:59 pm
by Doobrey
I used the AKrip dll a while back. There`s also a dll version of Lame to do the mp3 converting.

I started on a CD -> Mp3 prog, but as usual, work has got in the way and I don`t have the time to finish it at the moment.
Akrip is pretty good, and well documented. It can even do CDDB lookups and return the track listings if you want.

Posted: Sat Sep 27, 2003 8:14 pm
by Henrik