8 #include "bitspopup.inc"
10 #include "playbackconfig.inc"
11 #include "preferencesthread.inc"
12 #include "recordconfig.inc"
23 PreferencesWindow
*pwindow
,
24 PreferencesDialog
*dialog
,
25 AudioOutConfig
*out_config
,
26 AudioInConfig
*in_config
,
31 static int get_h(int recording
= 0);
32 int update(AudioOutConfig
*out_config
);
33 // creation - set if this is the first initialize of the object
34 // to prevent file format from being overwritten
35 int initialize(int creation
= 0);
38 PreferencesWindow
*pwindow
;
41 int create_oss_objs();
42 int create_esound_objs();
43 int create_firewire_objs();
44 int create_alsa_objs();
45 int create_cine_objs();
47 int delete_oss_objs();
48 int delete_esound_objs();
49 int delete_firewire_objs();
50 int delete_alsa_objs();
52 // The output config resolved from playback strategy and render engine.
53 AudioOutConfig
*out_config
;
54 AudioInConfig
*in_config
;
55 PreferencesDialog
*dialog
;
60 BC_Title
*driver_title
, *path_title
, *bits_title
;
61 BC_Title
*server_title
, *port_title
, *channel_title
, *syt_title
;
62 OSSEnable
*oss_enable
[MAXDEVICES
];
63 ADeviceTextBox
*oss_path
[MAXDEVICES
];
65 ADeviceTextBox
*esound_server
;
66 ADeviceIntBox
*esound_port
;
67 ADeviceIntBox
*firewire_port
;
68 ADeviceIntBox
*firewire_channel
;
69 ADeviceTextBox
*firewire_path
;
70 ADeviceIntBox
*firewire_syt
;
73 ALSADevice
*alsa_device
;
75 BC_CheckBox
*alsa_workaround
;
76 ArrayList
<BC_ListBoxItem
*> *alsa_drivers
;
80 ADeviceTextBox
*cine_path
;
83 class ADriverMenu
: public BC_PopupMenu
88 ADevicePrefs
*device_prefs
,
93 void create_objects();
94 char* adriver_to_string(int driver
);
98 ADevicePrefs
*device_prefs
;
99 char string
[BCTEXTLEN
];
102 class ADriverItem
: public BC_MenuItem
105 ADriverItem(ADriverMenu
*popup
, char *text
, int driver
);
112 class OSSEnable
: public BC_CheckBox
115 OSSEnable(int x
, int y
, int *output
);
122 class ADeviceTextBox
: public BC_TextBox
125 ADeviceTextBox(int x
, int y
, char *output
);
130 class ADeviceIntBox
: public BC_TextBox
133 ADeviceIntBox(int x
, int y
, int *output
);
138 class ALSADevice
: public BC_PopupTextBox
141 ALSADevice(PreferencesDialog
*dialog
,
145 ArrayList
<BC_ListBoxItem
*> *devices
);