~ubuntu-branches/ubuntu/utopic/cdrdao/utopic

« back to all changes in this revision

Viewing changes to dao/cdda_interface.h

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Suffield
  • Date: 2004-06-24 22:33:16 UTC
  • Revision ID: james.westby@ubuntu.com-20040624223316-534onzugaeeyq61j
Tags: upstream-1.1.9
ImportĀ upstreamĀ versionĀ 1.1.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/******************************************************************
 
2
 * CopyPolicy: GNU Public License 2 applies
 
3
 * Copyright (C) 1998 Monty xiphmont@mit.edu
 
4
 * and Heiko Eissfeldt heiko@escape.colossus.de
 
5
 *
 
6
 * Toplevel interface header; applications include this
 
7
 *
 
8
 ******************************************************************/
 
9
 
 
10
#ifndef _cdda_interface_h_
 
11
#define _cdda_interface_h_
 
12
 
 
13
#ifndef CD_FRAMESIZE
 
14
#define CD_FRAMESIZE 2048
 
15
#endif
 
16
#ifndef CD_FRAMESIZE_RAW
 
17
#define CD_FRAMESIZE_RAW 2352
 
18
#endif
 
19
#define CD_FRAMESAMPLES (CD_FRAMESIZE_RAW / 4)
 
20
 
 
21
#include <sys/types.h>
 
22
 
 
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 */
 
26
} cdrom_drive;
 
27
 
 
28
 
 
29
#ifdef __cplusplus
 
30
extern "C" {
 
31
#endif
 
32
 
 
33
extern long cdda_read(cdrom_drive *d, void *buffer,
 
34
                       long beginsector, long sectors);
 
35
 
 
36
#ifdef __cplusplus
 
37
}
 
38
#endif
 
39
 
 
40
#endif
 
41