SDL CD handeling... (CDR!?!?!)

Hello!

I need to write to a CD, is that something that can be done using SDL!!??! If not anyone knows how this can be achieved?!!

Many thanks for any kind of answers…

/Martin

H?strusk och gr? moln - k?p en resa till solen p? Yahoo! Resor

— Martin Holmgren wrote:

Hello!

I need to write to a CD, is that something that can
be done using SDL!!??!

Trying to write your own burning software? I don’t
believe this has been implemented in SDL… which is
geared more towards being a game programming lib than
being a general software toolkit (IMHO… and this
could allways change in the future… especially if
SDL 2 adds multi-window support, and other such
general application goodies ;).

If not anyone knows how this
can be achieved?!!

This is going to be VERY platform specific, unless
someone has allready created a library for this…
sort of a niche market for this, yes? does 30 seconds
of googling

For linux, I just found ‘webCDwriter’… it uses a
server backend (on linux) written in c++, source code
available (I just downloaded it). It has a java
frontend, allowing users to burn cds via web browser.

For windows, I’d suggest combing the MSDN, as I
believe there’s probably an API for it, to allow
drivers to work and all that.

http://joerghaeger.de/webCDwriter/index.html

Path on google:
first search: “Linux cd-writer code c++” (not in
quotes)

most eye grabbing seeming not-specific-to-hardware
link:

item #3:

C/C++ Users Journal Web Site Open this result in new

window
… to data is performed using C++ IOStreams and …
FAT (FAT16 and FAT32) filesystems and Linux swap
devices … browser, webCDwriter makes a single
CD-writer available to …
www.cuj.com/link/subject46.htm?topic=link cached |
more results from this site

Google (/yahoo!: http://www.yahoo.com) is your friend!
as is MSDN (http://msdn.microsoft.com/) if doing
windows stuff.

Many thanks for any kind of answers…

No problem. I want to point out that it took me less
time to find all the answers than it probably did for
you to send the email… and although I don’t mind,
I’m going to give a few quick pointers for helping
yourself. It’ll help you find your answers faster, and
make the angry googleist ‘I did it in 30 seconds, omfg
u n00b etc etc etc stop bugging us etc etc etc
meanie!!!’ people less angry in the future ;).

You can view the sdl documentation by following the
documentation link from the main libsdl.org page,
which leads to: http://sdldoc.csn.ul.ie/ and from
there you can quickly scan through all the CD related
functions (they’re grouped together) and see if it
looks like it supports cd writing. Library
documentation is a very useful and wonderful thing,
even if you’re just wondering what said library can
do.

As for information searching, I used the string “Linux
cd-writer code c++”. Components:

  1. Linux. Since what I’m looking for is most likely
    (read: definatly) platform specific, lets specify.
  2. cd-writer. Well, duh. We want to write a cd-writer.
  3. code. We’re looking for code, not applications…
    give us the code!!!
  4. c++. Since we dread java, delphi, and all those
    other weird languages (or at least I do) let’s specify
    the language we’re looking for the code to be in.

an alternative to ‘cd-writer’ would have been ‘“cd
writer”’ (minus the single quotes, keeping the double
quotes). Quoting things, at least for google, makes
the search engine look for that PHRASE… not each
individual word being anywhere. That way, we don’t
turn up something containing: “I hate my writer. He
allways sends the scripts on cds since he’s too cheap
to get broadband, and they’re usually half-filled with
c++ code because he fits the scripts onto cds he’s
half used and no longer needs”…which contains “cds”
(close enough to cd for google) and “writer”, but not
"cd writer".

/Martin

H?strusk och gr? moln - k?p en resa till solen p?
Yahoo! Resor

By the way, thanks… I havn’t installed any burning
software yet for linux… so you made me find
something usefull for myself as well :). I especially
like this burn-via-browser idea… it could be very
useful.

-Mike__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

Michael Rickert wrote:

For linux, I just found ‘webCDwriter’… it uses a
server backend (on linux) written in c++, source code
available (I just downloaded it). It has a java
frontend, allowing users to burn cds via web browser.

By the way, thanks… I havn’t installed any burning
software yet for linux… so you made me find
something usefull for myself as well :). I especially
like this burn-via-browser idea… it could be very
useful.

Try with X-CD-Roast or k3b… both OpenSource.–
Milan Babuskov
http://fbexport.sourceforge.net

Martin Holmgren wrote:

I need to write to a CD, is that something that can be done using
SDL!!??! If not anyone knows how this can be achieved?!!

It cannot be done with SDL. You can make user interface with SDL
of-course, but for burning you’ll need special apps. I suggest you look
into cdrecord and mkisofs. These are Linux tools, but have also been
ported to Windows. These are command-line tools so you could spawn them
from your GUI application and parse the output to see what’s done.

Most GUI CDR apps. on Linux do exactly that, so I suggest you look into
the sources on X-CD-Roast or k3b if you’re interested.

However, I don’t think you should use SDL for this. There are many other
options, that can make the job easier. If you’re into cross-platform, I
suggest you take a look at wxWindows.–
Milan Babuskov
http://njam.sourceforge.net