-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathqueue.h
More file actions
50 lines (39 loc) · 2.03 KB
/
queue.h
File metadata and controls
50 lines (39 loc) · 2.03 KB
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
/*
meterec
Console based multi track digital peak meter and recorder for JACK
Copyright (C) 2009-2020 Fabrice Lebas
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* type of events */
#define ALL 0
#define SEEK 1 /* Request to seek at new time position */
#define LOOP 2 /* A loop has been programmed or is ongoing */
#define LOCK 3 /* Lock on track/take has changed */
#define NEWT 4 /* A new take is available */
/* queuees */
#define ALL 0
#define DISK 1
#define PEND 2
#define JACK 3
/* print*/
#define CURSES 1
#define STDOUT 2
#define LOG 3
void add_event (struct meterec_s *meterec, unsigned int queue, unsigned int type, jack_nframes_t old_playhead, jack_nframes_t new_playhead, unsigned int buffer_pos);
struct event_s * find_first_event (struct meterec_s *meterec, unsigned int queue, unsigned int type);
struct event_s * find_last_event (struct meterec_s *meterec, unsigned int queue, unsigned int type);
void rm_event (struct meterec_s *meterec, struct event_s *event);
void find_rm_events (struct meterec_s *meterec, unsigned int queue, unsigned int type);
int event_match (struct event_s *event, unsigned int queue, unsigned int type);
void event_queue_print(struct meterec_s *meterec, unsigned int where);
void event_print (struct meterec_s *meterec, unsigned int where, struct event_s *event);