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 playback_strategy
, int engine_number
, int duplex
);
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
30 int playback_strategy
;
33 int oss_enable
[MAXDEVICES
];
34 char oss_out_device
[MAXDEVICES
][BCTEXTLEN
];
35 int oss_out_channels
[MAXDEVICES
];
37 char esound_out_server
[BCTEXTLEN
];
39 // Which channels to send output to
40 int do_channel
[MAXCHANNELS
];
41 char alsa_out_device
[BCTEXTLEN
];
42 int alsa_out_channels
;
45 int firewire_channels
;
49 char firewire_path
[BCTEXTLEN
];
51 int firewire_use_dv1394
;
54 // This structure is passed to the driver
58 VideoOutConfig(int playback_strategy
, int engine_number
);
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();
69 int playback_strategy
;
72 char lml_out_device
[BCTEXTLEN
];
73 char buz_out_device
[BCTEXTLEN
];
74 // Entry in the buz channel table
79 char x11_host
[BCTEXTLEN
];
81 // Values for x11_use_fields
90 // Which channels to send output to
91 int do_channel
[MAXCHANNELS
];
101 int firewire_channel
;
103 char firewire_path
[BCTEXTLEN
];
105 int firewire_use_dv1394
;
111 PlaybackConfig(int playback_strategy
, int engine_number
);
114 PlaybackConfig
& operator=(PlaybackConfig
&that
);
115 int load_defaults(Defaults
*defaults
);
116 int save_defaults(Defaults
*defaults
);
118 char hostname
[BCTEXTLEN
];
121 int playback_strategy
;
123 AudioOutConfig
*aconfig
;
124 VideoOutConfig
*vconfig
;