prefect
Home Engineering Publications
DACS: CDROM Service Provider CD Function Header, cdaudio_func.h
 
  next up previous contents
Next: CDROM Service Provider Main Up: MIDI Controller Previous: CDROM Service Provider Communications   Contents

CDROM Service Provider CD Function Header, cdaudio_func.h

This header file provides function prototypes and structures for accessing a CDROM for audio playback in a Linux environment.
/*****************************************************************************
 * DACS : Distributed Audio Control System
 * CDROM audio server
 *
 * The code, executables, documentation, firmware images, and all related
 * material of DACS are  
 * Copyright (C) 1997 Stephen S. Richardson - ALL RIGHTS RESERVED
 *****************************************************************************/

#ifndef CDAUDIO_FUNC_
#define CDAUDIO_FUNC_

#include <linux/cdrom.h>
#include "cdaudio_comm.h"


/* prefix for cdrom device */
#define CDROM_DEV "/dev/scd"  

#define SUCCESS            1
#define ERROR_CDROMHW      -50

struct cdhw_t {
    struct cdrom_tochdr tochdr;
    struct cdrom_tocentry tocentries[100];
    struct cdrom_subchnl subchnl;
};


extern struct cdhw_t *read_hw (int cdfile, int *err);
extern int cdrPlay (int track, int seekmin, int seeksec, int durmin, int dursec, int cdfile, struct discinfo *di);
extern int cdrCue (int track, int seekmin, int seeksec, int durmin, int dursec, int cdfile, struct discinfo *di);
extern int cdrPause (int cdfile);
extern int cdrResume (int cdfile);
extern int cdrStop (int cdfile);
extern int cdrEject (int cdfile);

#endif


Steve Richardson 2000-07-06
Table of Contents

[PDF] [Whole document in PDF 1.9MB]

[more photos and information]

 
Page last modified:
Copyright © 1993-2000 prefect - All Rights Reserved.