Hey everybody, I’ve created a simple VB example of CDDA ripping. Right now it will rip a CD track to a WAV file, but as soon as I figure out the LAME encoder I’ll try to change it to rip to MP3 instead. Thanks to karlkox for his example and also to the FMOD team for the C CDDA Rip example.
Here it is:
- Paranoid_Android asked 14 years ago
Wow, I just found a major bug. I fixed it and re-uploaded. So whoever downloaded it before the date of this post should download it again. Sorry.
I have a question for Brett or Andrew, do you know why when I rip a track from the CD to WAV the WAV output will always be 1 second longer than the CD track length?
I ve also converted the two cdda C examples to PureBasic, i ll update the archive when my ftp host will reopen.
Paranoid>i ll (i think) add mp3/ogg encoding to the cdrip example so you can convert it to vb, it ll be not too hard since it s also a basic
…do you know why when I rip a track from the CD to WAV the WAV output will always be 1 second longer than the CD track length?
I’m working on cd ripping just right now (in Delphi), the new length of the WAV it’s due to the stream buffer size you set: greater the size, shorter the rip time, longer the silence at the end of the stream. I found 2 methods to avoid it:
- Set roughly the size of the ripped track to the original one.
- Seek at the end of the stream and decrement the size until you find non-zero value (secure way if there are someone that opens the CD tray while ripping).
About EndCallback problems I read in other posts: I substituted it with checks for IsPlaying and now my code works fine.
- Iago answered 13 years ago
Please login first to submit.