Debian Codegraph @

src/common.h

raw
1 /*
2 common: anything can happen here... frame reading, output, messages
3
4 copyright ?-2022 by the mpg123 project - free software under the terms of the LGPL 2.1
5 see COPYING and AUTHORS files in distribution or http://mpg123.org
6 initially written by Michael Hipp
7 */
8
9 #ifndef _MPG123_COMMON_H_
10 #define _MPG123_COMMON_H_
11
12 #include "mpg123app.h"
13 #include "out123.h"
14
15 enum player_state
16 {
17 STATE_PLAYING=0
18 , STATE_STOPPED, STATE_LOOPING, STATE_AB
19 , STATE_COUNT
20 };
21 extern enum player_state playstate;
22 extern int muted;
23
24 void print_header(mpg123_handle *);
25 void print_header_compact(mpg123_handle *);
26 void print_stat(mpg123_handle *fr, long offset, out123_handle *ao, int draw_bar
27 , struct parameter *param);
28 void print_buf(const char* prefix, out123_handle *ao);
29 void clear_stat(void);
30 // input: decoder and output handle, frame offset
31 // output: frames, frames_remain, seconds, seconds_remain, seconds_buffered, seconds_total
32 int position_info( mpg123_handle *, off_t, out123_handle *, off_t *, off_t *, double *, double *, double *, double *);
33 /* for control_generic */
34 extern const char* remote_header_help;
35 void print_remote_header(mpg123_handle *mh);
36 void generic_sendmsg (const char *fmt, ...);
37
38 extern const char* rva_name[3];
39
40 #endif
41