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 |