4 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #ifndef PLAYBACKCONFIG_H
23 #define PLAYBACKCONFIG_H
25 #include "audiodevice.inc"
26 #include "bcwindowbase.inc"
28 #include "playbackconfig.inc"
30 // This structure is passed to the driver for configuration during playback
37 int operator!=(AudioOutConfig &that);
38 int operator==(AudioOutConfig &that);
39 AudioOutConfig& operator=(AudioOutConfig &that);
40 void copy_from(AudioOutConfig *src);
41 int load_defaults(BC_Hash *defaults, int active_config);
42 int save_defaults(BC_Hash *defaults, int active_config);
47 // Offset for synchronization in seconds
53 int oss_enable[MAXDEVICES];
54 char oss_out_device[MAXDEVICES][BCTEXTLEN];
59 char esound_out_server[BCTEXTLEN];
63 char alsa_out_device[BCTEXTLEN];
65 int interrupt_workaround;
71 char firewire_path[BCTEXTLEN];
79 char dv1394_path[BCTEXTLEN];
84 // This structure is passed to the driver
91 int operator!=(VideoOutConfig &that);
92 int operator==(VideoOutConfig &that);
93 VideoOutConfig& operator=(VideoOutConfig &that);
94 void copy_from(VideoOutConfig *src);
95 int load_defaults(BC_Hash *defaults, int active_config);
96 int save_defaults(BC_Hash *defaults, int active_config);
97 const char *get_path();
98 static const char *default_video_device;
105 char x11_host[BCTEXTLEN];
107 // Values for x11_use_fields
125 int firewire_channel;
127 char firewire_path[BCTEXTLEN];
133 char dv1394_path[BCTEXTLEN];
143 PlaybackConfig& operator=(PlaybackConfig &that);
144 void copy_from(PlaybackConfig *src);
145 int load_defaults(BC_Hash *defaults, int load_config=-1);
146 int save_defaults(BC_Hash *defaults);
148 char hostname[BCTEXTLEN];
152 AudioOutConfig *aconfig;
153 VideoOutConfig *vconfig;