r136: This commit was manufactured by cvs2svn to create tag 'hv_1_1_8'.
[cinelerra_cv/mob.git] / hvirtual / cinelerra / playbackconfig.h
blob3a205dc56fff50860e1605b7723497082cc50efa
1 #ifndef PLAYBACKCONFIG_H
2 #define PLAYBACKCONFIG_H
4 #include "audiodevice.inc"
5 #include "bcwindowbase.inc"
6 #include "defaults.inc"
7 #include "maxchannels.h"
8 #include "playbackconfig.inc"
10 // This structure is passed to the driver for configuration during playback
11 class AudioOutConfig
13 public:
14 AudioOutConfig(int playback_strategy, int engine_number, int duplex);
15 ~AudioOutConfig();
17 int operator!=(AudioOutConfig &that);
18 int operator==(AudioOutConfig &that);
19 AudioOutConfig& operator=(AudioOutConfig &that);
20 int load_defaults(Defaults *defaults);
21 int save_defaults(Defaults *defaults);
22 // Total channels in do_channels
23 int total_playable_channels();
24 int playable_channel_number(int number);
25 // Total channels device can handle
26 int total_output_channels();
28 // Change default titles for duplex
29 int duplex;
30 int playback_strategy;
31 int engine_number;
32 int driver;
33 int oss_enable[MAXDEVICES];
34 char oss_out_device[MAXDEVICES][BCTEXTLEN];
35 int oss_out_channels[MAXDEVICES];
36 int oss_out_bits;
37 char esound_out_server[BCTEXTLEN];
38 int esound_out_port;
39 // Which channels to send output to
40 int do_channel[MAXCHANNELS];
41 char alsa_out_device[BCTEXTLEN];
42 int alsa_out_channels;
43 int alsa_out_bits;
45 // Firewire options
46 int firewire_channels;
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_channels;
56 int dv1394_channel;
57 int dv1394_port;
58 int dv1394_frames;
59 char dv1394_path[BCTEXTLEN];
60 int dv1394_syt;
63 // This structure is passed to the driver
64 class VideoOutConfig
66 public:
67 VideoOutConfig(int playback_strategy, int engine_number);
68 ~VideoOutConfig();
70 int operator!=(VideoOutConfig &that);
71 int operator==(VideoOutConfig &that);
72 VideoOutConfig& operator=(VideoOutConfig &that);
73 int load_defaults(Defaults *defaults);
74 int save_defaults(Defaults *defaults);
75 int total_playable_channels();
76 char* get_path();
78 int playback_strategy;
79 int engine_number;
80 int driver;
81 char lml_out_device[BCTEXTLEN];
82 char buz_out_device[BCTEXTLEN];
83 // Entry in the buz channel table
84 int buz_out_channel;
85 int buz_swap_fields;
87 // X11 options
88 char x11_host[BCTEXTLEN];
89 int x11_use_fields;
90 // Values for x11_use_fields
91 enum
93 USE_NO_FIELDS,
94 USE_EVEN_FIRST,
95 USE_ODD_FIRST
99 // Which channels to send output to
100 int do_channel[MAXCHANNELS];
102 // Picture quality
103 int brightness;
104 int hue;
105 int color;
106 int contrast;
107 int whiteness;
109 // Firewire options
110 int firewire_channel;
111 int firewire_port;
112 char firewire_path[BCTEXTLEN];
113 int firewire_syt;
115 // DV1394 options
116 int dv1394_channel;
117 int dv1394_port;
118 char dv1394_path[BCTEXTLEN];
119 int dv1394_syt;
122 class PlaybackConfig
124 public:
125 PlaybackConfig(int playback_strategy, int engine_number);
126 ~PlaybackConfig();
128 PlaybackConfig& operator=(PlaybackConfig &that);
129 int load_defaults(Defaults *defaults);
130 int save_defaults(Defaults *defaults);
132 char hostname[BCTEXTLEN];
133 int port;
135 int playback_strategy;
136 int engine_number;
137 AudioOutConfig *aconfig;
138 VideoOutConfig *vconfig;
142 #endif