File: main.h

package info (click to toggle)
aylet 0.5-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 264 kB
  • ctags: 403
  • sloc: ansic: 3,648; makefile: 46; sh: 23
file content (66 lines) | stat: -rw-r--r-- 1,301 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/* aylet 0.1, a .AY music file player.
 * Copyright (C) 2001 Russell Marks and Ian Collier. See main.c for licence.
 *
 * main.h
 */

enum cb_action_tag
  {
  cb_none,
  cb_quit,
  cb_highspeed,
  cb_prev_file,
  cb_next_file,
  cb_prev_track,
  cb_next_track,
  cb_play,
  cb_pause,
  cb_stop,
  cb_restart,
  cb_dec_stopafter,
  cb_inc_stopafter,
  cb_dec_fadetime,
  cb_inc_fadetime,
  cb_dec_vol,
  cb_inc_vol
  };


extern int action_callback(enum cb_action_tag action);
extern int do_interrupt(void);
extern unsigned int in(int h,int l);
extern unsigned int out(int h,int l,int a);

extern unsigned char mem[];
extern unsigned long tstates,tsmax;
extern int highspeed,playing,paused,want_quit;
extern int stopafter,fadetime;
extern int use_ui,play_to_stdout;
extern char **ay_filenames;
extern int ay_file,ay_num_files;
extern int ay_track;


struct ay_track_tag
  {
  unsigned char *namestr,*data;
  unsigned char *data_stacketc,*data_memblocks;
  int fadestart,fadelen;
  };

struct aydata_tag
  {
  unsigned char *filedata;
  int filelen;
  struct ay_track_tag *tracks;
  
  int filever,playerver;
  unsigned char *authorstr,*miscstr;
  int num_tracks;
  int first_track;
  };

struct time_tag { int min,sec,subsecframes; };

extern struct aydata_tag aydata;
extern struct time_tag tunetime;