kcat / openal-soft

OpenAL Soft is a software implementation of the OpenAL 3D audio API.
Other
2.16k stars 524 forks source link

how to build for android 10 to allow for HRTF #662

Open TheBestKmanEver opened 2 years ago

TheBestKmanEver commented 2 years ago

title is all that's needed, what do i need etc.?

kcat commented 2 years ago

Just build it normally. The ALSOFT_EMBED_HRTF_DATA cmake option defaults to ON, so the resulting library will be able to use HRTF by default. An app may need to explicitly enable HRTF using the ALC_SOFT_HRTF extension, though, since it can't currently autodetect whether headphones are being used or not, and I don't think Android apps can easily use a user config file.

TheBestKmanEver commented 2 years ago

Do i compile it on my computer or phone? Do i need SDK or anything of the sorts?

kcat commented 2 years ago

You'll need an Android SDK, and you typically build on your computer and transfer to the phone (or use an emulator on your computer) for testing.