If other people think it makes sense then yes, I think we should probably move the autodetection code to run at wine startup. The code thus far is very much non-portable so while it should work under linux I'm not sure about other os's. I've considered also trying to dynamically load the sound libraries and use their library calls to detect the sound libraries. Any improvments or suggestions are more than welcome. The autodetection works well for me though so I'd imagine it would work for most linux end-users.
Chris
From: Mike Hearn mike@theoretic.com Date: 2004/01/19 Mon AM 09:00:48 EST To: wine-devel@winehq.com Subject: Re: [winecfg] - audio tab w/autodetection, misc
On Sun, 18 Jan 2004 18:08:30 -0500, Chris Morgan wrote:
err:winecfg:setConfigValue Unable to set configuration key Drivers in section Winmm to winejack.drv, res=1021
Is this expected as changing this option would require the registry functions to modify the config file, something they can't do?
Yes, that's normal. The config file is loaded as a read-only branch. To fully test patches change the constant in the winecfg.h file so it points to a new branch (ie a writable one).
Chris Morgan cmorgan@alum.wpi.edu Add audio tab with first pass at autodetection of audio driver. Double clicking a drive entry brings up drive edit window.
One thing I'd ask is should the autodetection code be in Wine itself, rather than the config utility?
The patch looks good! :)
thanks -mike