Recognizes if input is ogg or not.
[xiph.git] / postfish / output.h
blob750f5596844ce6754794fe387dc370f9c26b6c8b
1 /*
3 * postfish
4 *
5 * Copyright (C) 2002-2005 Monty
7 * Postfish is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
10 * any later version.
12 * Postfish is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Postfish; see the file COPYING. If not, write to the
19 * Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
24 typedef struct {
25 sig_atomic_t device;
26 sig_atomic_t source[OUTPUT_CHANNELS];
27 sig_atomic_t bytes;
28 sig_atomic_t ch;
29 sig_atomic_t format; /* WAV, AIFC, LE, BE */
30 } output_subsetting;
32 typedef struct {
33 sig_atomic_t panel_active[2];
34 sig_atomic_t panel_visible;
36 output_subsetting stdout;
37 output_subsetting monitor;
38 } output_settings;
40 typedef struct {
41 int type;
42 char *name;
43 char *file;
44 } output_monitor_entry;
46 extern int output_stdout_available;
47 extern int output_stdout_device;
48 extern int output_monitor_available;
49 extern output_monitor_entry *monitor_list;
50 extern int monitor_entries;
52 extern sig_atomic_t master_att;
54 extern int pull_output_feedback(float *peak,float *rms);
55 extern void *playback_thread(void *dummy);
56 extern void output_halt_playback(void);
57 extern void output_reset(void);
58 extern void playback_request_seek(off_t cursor);
59 extern int output_feedback_deep(void);
61 extern int output_probe_stdout(int outfileno);
62 extern int output_probe_monitor(void );
64 extern void outpanel_monitor_off();
65 extern void outpanel_stdout_off();
67 extern output_settings outset;