output.h 1.83 KB
Newer Older
1 2 3 4
/*
 *
 *  postfish
 *    
Monty Montgomery's avatar
Monty Montgomery committed
5
 *      Copyright (C) 2002-2005 Monty
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
 *
 *  Postfish 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, or (at your option)
 *  any later version.
 *   
 *  Postfish 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 Postfish; see the file COPYING.  If not, write to the
 *  Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 * 
 */

24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
typedef struct {
  sig_atomic_t device;
  sig_atomic_t source[OUTPUT_CHANNELS];
  sig_atomic_t bytes;
  sig_atomic_t ch;
  sig_atomic_t format; /* WAV, AIFC, LE, BE */
} output_subsetting;

typedef struct {
  sig_atomic_t panel_active[2];
  sig_atomic_t panel_visible;

  output_subsetting stdout;
  output_subsetting monitor;
} output_settings;

typedef struct {
41
  int driver;
42 43 44 45 46
  char *name;
  char *file;
} output_monitor_entry;

extern int output_stdout_available;
47
extern int output_stdout_ao;
48 49 50 51 52 53
extern int output_monitor_available;
extern output_monitor_entry *monitor_list;
extern int monitor_entries;

extern sig_atomic_t master_att;

54
extern int pull_output_feedback(float *peak,float *rms);
55
extern void *playback_thread(void *dummy);
Monty Montgomery's avatar
Monty Montgomery committed
56 57
extern void output_halt_playback(void);
extern void output_reset(void);
58
extern void playback_request_seek(off_t cursor);
Monty Montgomery's avatar
Monty Montgomery committed
59
extern int output_feedback_deep(void);
60 61 62 63 64 65 66 67

extern int output_probe_stdout(int outfileno);
extern int output_probe_monitor(void );

extern void outpanel_monitor_off();
extern void outpanel_stdout_off();

extern output_settings outset;