[Openal-devel] ALC_ENUMERATE_ALL_EXT and pluggable sound devices
Guilherme Balena Versiani
guibv at comunip.com.br
Fri Sep 25 11:13:37 PDT 2009
Chris Robinson wrote:
> Also, those things I mentioned aren't merely cosmetic changes. You can't free
> and rebuild the lists for the device types that aren't being queried..
> otherwise the application can be holding pointers that become invalid, and it
> can crash if it tries to use them. (...)
>
You were right. Sorry, I didn't understand in code what you were saying.
By inspecting the Router code more closely, I clarified that I should
have done what you said...
The only difference from what you said is that I didn't call Build*
function from DllMain function, as by calling from there the application
hangs on a call to alcGetString from Creative driver (I don't know why).
I maintained the initialization of device listings and strings on
alcGetString, alcOpenDevice and alcCaptureOpenDevice, as you can see in
the attached patch. The most important change was to break out the
BuildDeviceList() function into SearchImplementation(),
BuildDeviceList(), BuildCaptureDeviceList() and BuildAllDevicesList().
Please check out the patch against the r1789 from Creative OpenAL
repository for Router files.
Regards,
-- Guilherme Balena Versiani.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openal-r1789-pluggable-listing.patch.gz
Type: application/gzip
Size: 6259 bytes
Desc: not available
Url : http://opensource.creative.com/pipermail/openal-devel/attachments/20090925/ab1828c9/openal-r1789-pluggable-listing.patch.bin
More information about the Openal-devel
mailing list