#ifndef __iso9660_h__ #define __iso9660_h__ //#define BYTE unsigned char //#define WORD unsigned int //#define DWRD unsigned long #include "common.h" #define DATA_BLOCK_SIZE 256 BYTE sec_buf[2048]; //sector buffer for file system parseing BYTE xfer_buf[DATA_BLOCK_SIZE]; //transfer buffer for MP3 reading DWRD root_dir; //sector of the root dir DWRD root_size; //size of root dir DWRD cur_sect; //current sector in root dir we're working on WORD cur_offs; //current offset in root dir WORD cur_mp3=0; //current MP3 we're playing WORD mp3count=0; //total number of MP3's on CD WORD sec=0; //seconds we've been playing current song DWRD play_sect; //current sector we're playing DWRD play_length; //how much have we played of current track in bytes DWRD track_length; //length of current track in bytes BYTE scroll=0; //how far are we scrolling BYTE scroll_max; //how far can we scroll BYTE scroll_dir=1; //which way are we scrolling void nextTrack(); //goto the next track void prevTrack(); //goto the previous track void requestNextSector1(); //request next sector first part BOOL requestNextSector2(); //second part of the request int fetchSomeData(char * dest); //get some data from the CDROM void initCD(); //initialize the CDROM //internal functions that I need decl'ed BYTE find_next(); BYTE find_prev(); void disp_file(); #endif