r125: This commit was manufactured by cvs2svn to create tag 'r1_1_7-last'.
[cinelerra_cv/mob.git] / hvirtual / cinelerra / playbackconfig.h
blob8f7206ea17d757082a7088b2c2d85673392fe4ef
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 int firewire_channels;
46 int firewire_channel;
47 int firewire_port;
48 int firewire_frames;
49 char firewire_path[BCTEXTLEN];
50 int firewire_syt;
51 int firewire_use_dv1394;
54 // This structure is passed to the driver
55 class VideoOutConfig
57 public:
58 VideoOutConfig(int playback_strategy, int engine_number);
59 ~VideoOutConfig();
61 int operator!=(VideoOutConfig &that);
62 int operator==(VideoOutConfig &that);
63 VideoOutConfig& operator=(VideoOutConfig &that);
64 int load_defaults(Defaults *defaults);
65 int save_defaults(Defaults *defaults);
66 int total_playable_channels();
67 char* get_path();
69 int playback_strategy;
70 int engine_number;
71 int driver;
72 char lml_out_device[BCTEXTLEN];
73 char buz_out_device[BCTEXTLEN];
74 // Entry in the buz channel table
75 int buz_out_channel;
76 int buz_swap_fields;
78 // X11 options
79 char x11_host[BCTEXTLEN];
80 int x11_use_fields;
81 // Values for x11_use_fields
82 enum
84 USE_NO_FIELDS,
85 USE_EVEN_FIRST,
86 USE_ODD_FIRST
90 // Which channels to send output to
91 int do_channel[MAXCHANNELS];
93 // Picture quality
94 int brightness;
95 int hue;
96 int color;
97 int contrast;
98 int whiteness;
100 // Firewire options
101 int firewire_channel;
102 int firewire_port;
103 char firewire_path[BCTEXTLEN];
104 int firewire_syt;
105 int firewire_use_dv1394;
108 class PlaybackConfig
110 public:
111 PlaybackConfig(int playback_strategy, int engine_number);
112 ~PlaybackConfig();
114 PlaybackConfig& operator=(PlaybackConfig &that);
115 int load_defaults(Defaults *defaults);
116 int save_defaults(Defaults *defaults);
118 char hostname[BCTEXTLEN];
119 int port;
121 int playback_strategy;
122 int engine_number;
123 AudioOutConfig *aconfig;
124 VideoOutConfig *vconfig;
128 #endif