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
14 AudioOutConfig(int duplex
);
17 int operator!=(AudioOutConfig
&that
);
18 int operator==(AudioOutConfig
&that
);
19 AudioOutConfig
& operator=(AudioOutConfig
&that
);
20 void copy_from(AudioOutConfig
*src
);
21 int load_defaults(Defaults
*defaults
);
22 int save_defaults(Defaults
*defaults
);
23 // Total channels in do_channels
24 int total_playable_channels();
25 int playable_channel_number(int number
);
26 // Total channels device can handle
27 int total_output_channels();
31 // Change default titles for duplex
34 int oss_enable
[MAXDEVICES
];
35 char oss_out_device
[MAXDEVICES
][BCTEXTLEN
];
36 int oss_out_channels
[MAXDEVICES
];
38 char esound_out_server
[BCTEXTLEN
];
40 // Which channels to send output to
41 int do_channel
[MAXCHANNELS
];
42 char alsa_out_device
[BCTEXTLEN
];
43 int alsa_out_channels
;
47 int firewire_channels
;
51 char firewire_path
[BCTEXTLEN
];
60 char dv1394_path
[BCTEXTLEN
];
64 // This structure is passed to the driver
71 int operator!=(VideoOutConfig
&that
);
72 int operator==(VideoOutConfig
&that
);
73 VideoOutConfig
& operator=(VideoOutConfig
&that
);
74 void copy_from(VideoOutConfig
*src
);
75 int load_defaults(Defaults
*defaults
);
76 int save_defaults(Defaults
*defaults
);
77 int total_playable_channels();
81 char lml_out_device
[BCTEXTLEN
];
82 char buz_out_device
[BCTEXTLEN
];
83 // Entry in the buz channel table
88 char x11_host
[BCTEXTLEN
];
90 // Values for x11_use_fields
99 // Which channels to send output to
100 int do_channel
[MAXCHANNELS
];
110 int firewire_channel
;
112 char firewire_path
[BCTEXTLEN
];
118 char dv1394_path
[BCTEXTLEN
];
128 PlaybackConfig
& operator=(PlaybackConfig
&that
);
129 void copy_from(PlaybackConfig
*src
);
130 int load_defaults(Defaults
*defaults
);
131 int save_defaults(Defaults
*defaults
);
133 char hostname
[BCTEXTLEN
];
136 AudioOutConfig
*aconfig
;
137 VideoOutConfig
*vconfig
;