oops, that commit wasn't so clean
[hrr.git] / proc.h
blobfcdfe0bae80276ede5307be8c6c63cbfcae0f006
1 /*
2 -----BEGIN PGP SIGNED MESSAGE-----
3 Hash: SHA1
5 m m mm mmm .----------. .---------------------. mmm mm m m
6 8 8 88 888 | .--------` | .------------------` 888 88 8 8
7 8 8 88 888 | ```````|`V```````| |``||``|`````| 888 88 8 8
8 8 8 88 888 `------ | | [] | |``````|| | [] | 888 88 8 8
9 8 8 88 888 |`````` | | | ````|```` | | 888 88 8 8
10 ` ` `` ``` ``````````````> |````````````| |`` ``` `` ` `
11 ==============` `---`
12 L A B O R A T O R I E S
14 This file is part of Hacker Radio Rec.
16 Hacker Radio Rec is free software: you can redistribute it and/or
17 modify it under the terms of the GNU General Public License as
18 published by the Free Software Foundation, either version 3 of
19 the License or (at your option) any later version.
21 Hacker Radio Rec is distributed in the hope that it will be
22 useful, but WITHOUT ANY WARRANTY; without even the implied
23 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24 See the GNU General Public License for more details.
26 Copyright (C) 2009, Thea DeSilva
27 You can find a copy of GNU General Public License in COPYING
30 #define TRACK_ANY -1
32 enum {
33 CHUNKS,
34 SECONDS,
35 MINUTES,
36 HOURS,
37 DAYS
40 extern Sint32 current_scale;
42 #define TOO_LONG "What are you kidding me? WAY TOO LONG!!"
44 #define MSG_CLEAN MSG_USER
46 #define PROGRESS_BAR_UNDETER 0
47 #define PROGRESS_BAR_DETER 1
49 extern char message_bar_null;
51 typedef struct {
52 struct object_t *wave;
53 struct object_t *cue;
54 Sint32 dirty, empty;
55 } track_t;
57 extern track_t tracks[TRACKS];
59 typedef struct {
60 Sint32 track;
61 double pos, end;
62 } cursor_t;
64 extern cursor_t cursor;
66 extern float zoom;
67 extern float globl_time;
70 extern SDL_Surface *sub, *left, *right;
72 void norm_update(struct object_t *obj);
73 void sub_update(struct object_t *obj);
74 Sint32 proc_main(Sint32 msg, struct object_t *obj, Sint32 data);
75 Sint32 proc_wave(Sint32 msg, struct object_t *obj, Sint32 data);
76 Sint32 proc_back(Sint32 msg, struct object_t *obj, Sint32 data);
77 Sint32 proc_time_bar(Sint32 msg, struct object_t *obj, Sint32 data);
78 Sint32 proc_start_splash(Sint32 msg, struct object_t *obj, Sint32 data);
79 Sint32 proc_end_splash(Sint32 msg, struct object_t *obj, Sint32 data);
80 Sint32 proc_progress_bar(Sint32 msg, struct object_t *obj, Sint32 data);
81 Sint32 proc_message_bar(Sint32 msg, struct object_t *obj, Sint32 data);
82 Sint32 proc_memory_bar(Sint32 msg, struct object_t *obj, Sint32 data);
83 void new_cue(char *name, Sint32 file_index, Sint32 track);
86 Thank you for your attention
87 -----BEGIN PGP SIGNATURE-----
88 Version: GnuPG v1.4.9 (OpenBSD)
90 iEYEARECAAYFAkrsgxEACgkQMNO4A6bnBrMZSACfWoNlC4TGAOKPgB5I5OexVz8Y
91 200AoJTbvxeHtsV1HnMbl1k80hZQl7nS
92 =Gy+J
93 -----END PGP SIGNATURE-----