[openal] Noob questions on oepnAL
chris.kcat at gmail.com
Fri Jan 8 03:21:59 EST 2016
On 01/07/2016 05:26 AM, Massimiliano Maini wrote:
> Thanks for the prompt and clear reply Chris. Two side questions:
> 1. Does OpenAL Soft do something particular for sources that are near to
> the listener ? I've read around about stuff like MacroFX ...
Not currently. There is the AL_EXT_SOURCE_RADIUS extension that
increases the apparent "size" of a source, which causes the source's
locality to decrease as it gets closer to the listener, but this won't
be supported until 1.18.
> 2. On windows, I know alsoft.ini is in %AppData% and it works fine. If I
> have an openAL-based app and I want to force it to use OpenAL Soft with it,
> I can drop the OpenAL Soft dll (renamed to OpenAL32.dll) in the app folder,
> and that works fine too. But can I also put the alsoft.ini in the app
> folder and have this local .ini considered (instead of the "global" one in
> %AppData") ? Same thing for OpenAL Soft's HRTF folder, can I put in the
> app's folder ?
Not exactly. But what you can do is set the ALSOFT_CONF environment
variable to a filename to use as an additional config file, before
running the app (it doesn't use it instead of the AppData one, but any
settings in it will override anything in AppData).
For HRTF, OpenAL Soft will search the current working directory (which
might be the app's directory, depending on how it's run) for mhr files.
Alternatively, you can try setting the ALSOFT_LOCAL_PATH env var to the
path you want, which will be used instead of the current directory.
More information about the openal