Commit 418edc0d authored by Rocky Bernstein's avatar Rocky Bernstein

2nd attempt to get libcdio cdda working.

mtime.h: define constant for second-to-millisecond conversions.
parent 08997aa0
......@@ -47,8 +47,13 @@
*****************************************************************************/
#define MSTRTIME_MAX_SIZE 22
/* Well, Duh? But it does clue us in that we are converting from
millisecond quantity to a second quantity or vice versa.
*/
#define MILLISECONDS_PER_SEC 1000
#define msecstotimestr(psz_buffer, msecs) \
secstotimestr( psz_buffer, (msecs / (int) 1000) )
secstotimestr( psz_buffer, (msecs / (int) MILLISECONDS_PER_SEC) )
/*****************************************************************************
* Prototypes
......
SOURCES_cddax = \
../vcdx/cdrom.c \
../vcdx/cdrom.h \
access.c \
cdda.c \
cdda.h \
......
This diff is collapsed.
......@@ -22,7 +22,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#include "../vcdx/cdrom.h"
#include <cdio/cdio.h>
#include "vlc_meta.h"
#ifdef HAVE_LIBCDDB
......@@ -56,13 +56,14 @@
*****************************************************************************/
typedef struct cdda_data_s
{
cddev_t *p_cddev; /* CD device descriptor */
CdIo *p_cdio; /* libcdio CD device */
int i_tracks; /* # of tracks (titles) */
int i_first_track; /* # of first track */
/* Current position */
int i_track; /* Current track */
lsn_t i_sector; /* Current Sector */
lsn_t * p_sectors; /* Track sectors */
lsn_t i_lsn; /* Current Logical Sector Number */
lsn_t * p_lsns; /* Track LSNs */
int i_debug; /* Debugging mask */
char * psz_mcn; /* Media Catalog Number */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment