[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libcdio-help] Checking if disc is empty with libcdio
From: |
rocky |
Subject: |
[Libcdio-help] Checking if disc is empty with libcdio |
Date: |
Tue, 25 Nov 2008 15:57:26 -0500 |
I don't know that there is an "authoritative information"; there may
only be hueristics. The cdfreaks forum might be a good place to ask
http://club.cdfreaks.com/
But as for adding cdw.sf.net to libcdio's "projects" page, that's been done.
Kamil Ignacak writes:
> Hi,<br><br>I am looking for authoritative information on how to check if
> given media in drive is blank/empty: when either it is brand new CD-R/RW
> disc or a CD-RW disc that was blanked e.g. by cdrecord in fast or full
> mode.<br><br>I searched for this information in your online documentation,
> doxygen documentation of API, header files available on my computer and even
> in example programs available in libcdio sources.<br><br>There is no
> paragraph stating that "value x returned by function f()
> means that the disc is empty".<br><br>I have found an information that "An
> empty drive can be detected by checking if cdio_get_last_track_num() returns
> CDIO_INVALID_TRACK." I use cdio_get_first_track_num() in my code and check
> if it returns CDIO_INVALID_TRACK - this is how this function behaves for
> empty CD disc.<br><br>So at this point my code works, but I would like to be
> sure that it works not only by pure coincidence, but because I am using
> libcdio correctly.<br><br>Could you please let me
> know?<br><br>Kind regards,<br>Kamil Ignacak<br><br>By the way - could you
> please add this project: http://cdw.sourceforge.net/ to this list:
> http://www.gnu.org/software/libcdio/projects.html ?
> Thanks!<br><br><br><br><br />
>
>
>
>
> _______________________________________________
> Libcdio-help mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/libcdio-help