r1014: Enable horizontal scrolling with the mouse wheel by pressing Ctrl.
[cinelerra_cv/ct.git] / cinelerra / playbackconfig.h
blob7040724e6012675242ba33838beaef9dcfc5ee5f
1 #ifndef PLAYBACKCONFIG_H
2 #define PLAYBACKCONFIG_H
4 #include "audiodevice.inc"
5 #include "bcwindowbase.inc"
6 #include "bchash.inc"
7 #include "playbackconfig.inc"
9 // This structure is passed to the driver for configuration during playback
10 class AudioOutConfig
12 public:
13 AudioOutConfig(int duplex);
14 ~AudioOutConfig();
16 int operator!=(AudioOutConfig &that);
17 int operator==(AudioOutConfig &that);
18 AudioOutConfig& operator=(AudioOutConfig &that);
19 void copy_from(AudioOutConfig *src);
20 int load_defaults(BC_Hash *defaults);
21 int save_defaults(BC_Hash *defaults);
23 int fragment_size;
26 // Offset for synchronization in seconds
27 float audio_offset;
29 // Change default titles for duplex
30 int duplex;
31 int driver;
32 int oss_enable[MAXDEVICES];
33 char oss_out_device[MAXDEVICES][BCTEXTLEN];
34 int oss_out_bits;
38 char esound_out_server[BCTEXTLEN];
39 int esound_out_port;
41 // ALSA options
42 char alsa_out_device[BCTEXTLEN];
43 int alsa_out_bits;
44 int interrupt_workaround;
46 // Firewire options
47 int firewire_channel;
48 int firewire_port;
49 int firewire_frames;
50 char firewire_path[BCTEXTLEN];
51 int firewire_syt;
54 // DV1394 options
55 int dv1394_channel;
56 int dv1394_port;
57 int dv1394_frames;
58 char dv1394_path[BCTEXTLEN];
59 int dv1394_syt;
62 // This structure is passed to the driver
63 class VideoOutConfig
65 public:
66 VideoOutConfig();
67 ~VideoOutConfig();
69 int operator!=(VideoOutConfig &that);
70 int operator==(VideoOutConfig &that);
71 VideoOutConfig& operator=(VideoOutConfig &that);
72 void copy_from(VideoOutConfig *src);
73 int load_defaults(BC_Hash *defaults);
74 int save_defaults(BC_Hash *defaults);
75 char* get_path();
77 int driver;
78 char lml_out_device[BCTEXTLEN];
79 char buz_out_device[BCTEXTLEN];
80 // Entry in the buz channel table
81 int buz_out_channel;
82 int buz_swap_fields;
84 // X11 options
85 char x11_host[BCTEXTLEN];
86 int x11_use_fields;
87 // Values for x11_use_fields
88 enum
90 USE_NO_FIELDS,
91 USE_EVEN_FIRST,
92 USE_ODD_FIRST
97 // Picture quality
98 int brightness;
99 int hue;
100 int color;
101 int contrast;
102 int whiteness;
104 // Firewire options
105 int firewire_channel;
106 int firewire_port;
107 char firewire_path[BCTEXTLEN];
108 int firewire_syt;
110 // DV1394 options
111 int dv1394_channel;
112 int dv1394_port;
113 char dv1394_path[BCTEXTLEN];
114 int dv1394_syt;
117 class PlaybackConfig
119 public:
120 PlaybackConfig();
121 ~PlaybackConfig();
123 PlaybackConfig& operator=(PlaybackConfig &that);
124 void copy_from(PlaybackConfig *src);
125 int load_defaults(BC_Hash *defaults);
126 int save_defaults(BC_Hash *defaults);
128 char hostname[BCTEXTLEN];
129 int port;
131 AudioOutConfig *aconfig;
132 VideoOutConfig *vconfig;
136 #endif