[Openal] ALC_ENUMERATE_ALL_EXT not present in svn trunk OpenAL-Windows?

Daniel PEACOCK dpeacock at creativelabs.com
Mon Mar 9 02:42:09 PDT 2009





Hi,

I haven't tested this - but I think one work-around is for the application
to completely shutdown and unload the OpenAL libraries, and then re-load
and re-initialize everything.   This should give you the up-to-date list of
available devices.

Dan
Creative Labs (UK) Ltd.

Notice
The information in this message is confidential and may be legally
privileged.  It is intended solely for the addressee.  Access to this
message by anyone else is unauthorized.  If you are not the intended
recipient,  any disclosure,  copying or distribution of the message,  or
any action taken by you in reliance on it,  is prohibited and may be
unlawful.  If you have received this message in error,  please delete it
and contact the sender immediately.  Thank you.

Creative Labs UK Ltd company number 2658256 registered in England and Wales
at Belmont Road, Belmont Place, Maidenhead, Berkshire, SL6 6TB



                                                                           
             Chris Robinson                                                
             <chris.kcat at gmail                                             
             .com>                                                      To 
             Sent by:                  openal at opensource.creative.com      
             openal-bounces at op                                          cc 
             ensource.creative                                             
             .com                                                  Subject 
                                       Re: [Openal] ALC_ENUMERATE_ALL_EXT  
                                       not present in svn trunk            
             03/09/2009 06:49          OpenAL-Windows?                     
             AM                                                            
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




On Sunday 08 March 2009 10:23:04 am admin at ptrefall.com wrote:
> In the latest release (oalinst.exe), the ALC_ENUMERATE_ALL_EXT work, but
> if I plug in a new device after I've started my application, I'm not able
> to switch to this device (it doesn't appear in the device list). So, in
my
> quest to fix this problem, I downloaded the latest version from svn
trunk,
> and compiled the OpenAL-Windows version there. This fixed the problem
with
> finding the new device, but now the ALC_ENUMERATE_ALL_EXT stopped
working.
>
> I've found out that exchanging the new wrap_oal.dll with the old wrap_oal
> that comes with oalinst.exe fixes the problem, but reintroduces the other
> problem, which is why I feel a bit cornered here. Am I missing something?

AFAIK, recognizing devices that are added after application start isn't
guaranteed behavior. The OpenAL spec says that device string is constant,
and
as such, apps may assume it doesn't change.

As well, the SVN OpenAL-Windows code is older than the latest binary
release.
The code was left for historical reasons, but the new releases are closed-
source. The ALC_ENUMERATE_ALL_EXT extension (as well as software EAX and
EFX)
was added afterward.

Note that there is a proposed (but as of yet unimplemented)
ALC_EXT_disconnect
extension that would allow the device string to reflect new/removed
devices,
but IMO that suffers from the problem of the device string changing when
older
apps may not expect it.
_______________________________________________
Openal mailing list
Openal at opensource.creative.com
http://opensource.creative.com/mailman/listinfo/openal

ForwardSourceID:NT00069BA2



More information about the Openal mailing list