Let me know what you guys think of this one, I think it will be somewhat controversial. There is a registry key to enable this currently, but it should really occur by default and maybe be unchangeable. If you have multiple cards, like a USB mic for capture, scan_devices to 0, as would occur on many configurations currently, is undesirable and most users won't be able to work around it.
I'm not sure why scan_devices would be 0, maybe to prevent bugs while probing or something, but I don't see much reason to disable scanning all reported audio devices. Thoughts? Please let me know if I'm missing anything. From Jeff --- dlls/winealsa.drv/waveinit.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/winealsa.drv/waveinit.c b/dlls/winealsa.drv/waveinit.c index 4ae93bb..0daa203 100644 --- a/dlls/winealsa.drv/waveinit.c +++ b/dlls/winealsa.drv/waveinit.c @@ -699,7 +699,11 @@ static int ALSA_ScanDevices(int directhw, int fixedctlcard, int fixedpcmcard, int fixedpcmdev) { int card = fixedpcmcard; - int scan_devices = (fixedpcmdev == -1); + /* we always want to scan_devices; otherwise, if a default is set and the + appropriate registry keys are not set, only the default device will be seen + by wine. This is undesirable, for instance, if you have separate cards for + capture and playback, like a USB microphone for capture */ + int scan_devices = 1; /*------------------------------------------------------------------------ ** Loop through all available cards