get_default_device with NULL will get device *without* trying to open

cd. Add read_audio call.
This commit is contained in:
rocky
2003-04-10 04:13:41 +00:00
parent 4a67211833
commit aa9d1b517f
9 changed files with 292 additions and 87 deletions

View File

@@ -1,5 +1,5 @@
/*
$Id: cdio_private.h,v 1.5 2003/04/07 11:31:19 rocky Exp $
$Id: cdio_private.h,v 1.6 2003/04/10 04:13:41 rocky Exp $
Copyright (C) 2003 Rocky Bernstein <rocky@panix.com>
@@ -122,6 +122,12 @@ extern "C" {
*/
ssize_t (*read) (void *user_data, void *buf, size_t size);
/*!
Reads a single mode2 sector from cd device into buf starting
from lsn. Returns 0 if no error.
*/
int (*read_audio_sector) (void *user_data, void *buf, lsn_t lsn);
/*!
Reads a single mode2 sector from cd device into buf starting
from lsn. Returns 0 if no error.
@@ -191,6 +197,7 @@ extern "C" {
const char *describe;
bool (*have_driver) (void);
CdIo *(*driver_open) (const char *source_name);
char *(*get_default_device) (void);
} CdIo_driver_t;
/* The below array gives of the drivers that are currently available for