Click to See Complete Forum and Search --> : C or C++ - writing to CD's


deathadder
05-11-2006, 11:53 AM
Over the next year or so I've got to look into projects for my degree. I'm already thinking about some GTK CD/DVD software, the idea would be something K3B like.

However apart from looking at source code for other projects, does anyone have any recommendations for books, or reliable sites, that have information about writing to CD's etc?

[EDIT]
Almost forgot, I'm looking at doing it in C, mainly because it's one of my favourite languages, however C++ is good too :)

Or if theres any recommendations for other languages to try it in, I'm always looking at learning something new :)

bwkaz
05-11-2006, 08:20 PM
Why not use cdrecord as your backend, just like everyone else does? K3B, for instance, doesn't write CDs on its own; it calls out to cdrecord to do it. ;)

However, if you're dead-set on doing the "raw" CD writing calls, look into the various ioctls that you can do on the /dev/hdX devices. That's how cdrecord does its thing.

deathadder
05-12-2006, 05:02 AM
To be honest I hadn't thought about doing that :o

Mainly because I didn't think the lecturer's would allow it, however come to think about it aslong as I can explain whats happening I don't think they'll be too bothered.

Failing that I'll look at implementing raw calls.

Thanks for the reply bwkaz