Rearange menu of mpegplayer. Add new menu with "settings" and "quit", and remove...
[kugel-rb.git] / apps / plugins / zxbox / tapefile.h
blobe7019f2fa244122a9d098c8edd7c7be356ed948b
1 /*
2 * Copyright (C) 1996-1998 Szeredi Miklos
3 * Email: mszeredi@inf.bme.hu
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version. See the file COPYING.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef TAPEFILE_H
22 #define TAPEFILE_H
24 #define DAT_ERR -2
25 #define DAT_END -1
27 #define SEG_ERROR -1
28 #define SEG_END 0 /* ^--- End of tape */
30 #define SEG_STOP 1
31 #define SEG_SKIP 2
32 #define SEG_GRP_BEG 3
33 #define SEG_GRP_END 4
35 #define SEG_DATA 10
36 #define SEG_DATA_TURBO 11
37 #define SEG_DATA_PURE 12
39 #define SEG_PAUSE 20
40 #define SEG_OTHER 21
42 #define SEG_VIRTUAL 30
44 #define TAP_TAP 0
45 #define TAP_TZX 1
47 #define MACHINE_48 0
48 #define MACHINE_128 1
50 struct tape_options {
51 int blanknoise;
52 int stoppause;
53 int machine;
56 #define INITTAPEOPT(to) \
57 (to).blanknoise=0, \
58 (to).stoppause=0, \
59 (to).machine=MACHINE_48
61 extern char seg_desc[];
63 #ifdef __cplusplus
64 extern "C" {
65 #endif
67 extern int open_tapefile(char *name, int type);
68 extern void close_tapefile(void);
69 extern int goto_segment(int at_seg);
70 extern int next_segment(void);
71 extern int next_byte(void);
72 extern int next_imps(unsigned short *impbuf, int buflen, long timelen);
74 extern void set_tapefile_options(struct tape_options *to);
75 extern int get_level(void);
77 extern long get_seglen(void);
78 extern long get_segpos(void);
79 extern unsigned segment_pos(void);
81 #ifdef __cplusplus
83 #endif
85 #endif /* TAPEFILE_H */