ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/bincue_unix.h
Revision: 1.1
Committed: 2010-10-06T00:30:23Z (14 years, 1 month ago) by asvitkine
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Log Message:
[Geoffrey Brown]

Add bin/cue support. The following should work:

1) Basilisk and SheepShaver with sdl-audio and bincue on linux and os x
2) SheepShaver with bincue and core audio on os x

File Contents

# Content
1 /*
2 * bincue_unix.h -- support for cdrom image files in bin/cue format
3 *
4 * (C) 2010 Geoffrey Brown
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21 #ifndef BINCUE_H
22 #define BINCUE_H
23
24 extern void *open_bincue(const char *name);
25 extern bool readtoc_bincue(void *, uint8 *);
26 extern size_t read_bincue(void *, void *, loff_t, size_t);
27 extern loff_t size_bincue(void *);
28 extern void close_bincue(void *);
29
30 extern bool GetPosition_bincue(void *, uint8 *);
31
32 extern bool CDPlay_bincue(void *, uint8, uint8,
33 uint8, uint8, uint8, uint8);
34 extern bool CDPause_bincue(void *);
35 extern bool CDResume_bincue(void *);
36 extern bool CDStop_bincue(void *);
37
38 #ifdef USE_SDL_AUDIO
39 extern void OpenAudio_bincue(int, int, int, uint8);
40 extern void MixAudio_bincue(uint8 *, int);
41 #endif
42
43 #endif