icculus / mojoAL

An SDL2-based implementation of OpenAL in a single C file.
https://icculus.org/mojoAL/
zlib License
158 stars 21 forks source link

A way to manually set the audio driver #17

Closed ericoporto closed 2 years ago

ericoporto commented 2 years ago

Hi,

I am trying to figure out how to set to use a specific audio driver and how to force automatic audio driver selection.

The problem is SDL_AudioInit is not ref counted, so I can't pre-open it and let MojoAL use the driver I set simply because this will cause a failure. See https://github.com/libsdl-org/SDL/issues/5841

ericoporto commented 2 years ago

We found a work around way that worked, so this is no longer needed