Checking if disc is empty with libcdio

View: New views
4 Messages — Rating Filter:   Alert me  

Checking if disc is empty with libcdio

by Kamil Ignacak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

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.

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.

There is no paragraph stating that "value x returned by function f() means that the disc is empty".

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.

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.

Could you please let me know?

Kind regards,
Kamil Ignacak

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!





_______________________________________________
Libcdio-help mailing list
Libcdio-help@...
http://lists.gnu.org/mailman/listinfo/libcdio-help

Checking if disc is empty with libcdio

by r- :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
 > Libcdio-help@...
 > http://lists.gnu.org/mailman/listinfo/libcdio-help


_______________________________________________
Libcdio-help mailing list
Libcdio-help@...
http://lists.gnu.org/mailman/listinfo/libcdio-help

Checking if disc is empty with libcdio

by r- :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
Libcdio-help@...
http://lists.gnu.org/mailman/listinfo/libcdio-help

Odp: Checking if disc is empty with libcdio

by Kamil Ignacak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> 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/

I was hoping that libcdio provided such functionality implicitly, and I
just didn't find it yet.
I will use "my way" then.

> But as for adding cdw.sf.net to libcdio's "projects" page, that's been
> done.

Thanks!

Kamil




_______________________________________________
Libcdio-help mailing list
Libcdio-help@...
http://lists.gnu.org/mailman/listinfo/libcdio-help