1
/******************************************************************
2
* CopyPolicy: GNU Public License 2 applies
3
* Copyright (C) 1998 Monty xiphmont@mit.edu
4
* and Heiko Eissfeldt heiko@escape.colossus.de
6
* Toplevel interface header; applications include this
8
******************************************************************/
10
#ifndef _cdda_interface_h_
11
#define _cdda_interface_h_
14
#define CD_FRAMESIZE 2048
16
#ifndef CD_FRAMESIZE_RAW
17
#define CD_FRAMESIZE_RAW 2352
19
#define CD_FRAMESAMPLES (CD_FRAMESIZE_RAW / 4)
21
#include <sys/types.h>
23
typedef struct cdrom_drive{
24
long nsectors; /* number of sectors that can be read at once */
25
void *cdr; /* pointer to a CdrDriver object */
33
extern long cdda_read(cdrom_drive *d, void *buffer,
34
long beginsector, long sectors);