I’m using the latest version of Monogame found on GitHub and compiled from source. I’m also setting the minimum Android version to API 10 (Android 2.3) which I read is the minimum version supported by Monogame.
When I set this minimum version I get an error when I try to play a SoundEffect:
[Mono] DllImport attempting to load: ‘openal32.dll’.
[Mono] DllImport error loading library ‘./libopenal32.dll’: ‘Cannot load library: load_library[1104]: Library ‘/data/data/com.yaawn.ninjaman/lib/./libopenal32.dll’ not found’.
[Mono] DllImport error loading library ‘./libopenal32.dll.so’: ‘Cannot load library: load_library[1104]: Library ‘/data/data/com.yaawn.ninjaman/lib/./libopenal32.dll.so’ not found’.
[Mono] DllImport error loading library ‘libopenal32.dll’: ‘Cannot load library: load_library[1104]: Library ‘/data/data/com.yaawn.ninjaman/lib/libopenal32.dll’ not found’.
[Mono] DllImport error loading library ‘libopenal32.dll.so’: ‘Cannot load library: load_library[1104]: Library ‘/data/data/com.yaawn.ninjaman/lib/libopenal32.dll.so’ not found’.
[Mono] DllImport error loading library ‘openal32.dll’: ‘Cannot load library: load_library[1104]: Library ‘/data/data/com.yaawn.ninjaman/lib/openal32.dll’ not found’.
[Mono] DllImport error loading library ‘./libopenal32’: ‘Cannot load library: load_library[1104]: Library ‘/data/data/com.yaawn.ninjaman/lib/./libopenal32’ not found’.
[Mono] DllImport error loading library ‘./libopenal32.so’: ‘Cannot load library: find_library[1219]: 1044 ‘libopenal32.so’ failed to load previously’.
[Mono] DllImport error loading library ‘libopenal32’: ‘Cannot load library: load_library[1104]: Library ‘/data/data/com.yaawn.ninjaman/lib/libopenal32’ not found’.
[Mono] DllImport error loading library ‘libopenal32.so’: ‘Cannot load library: find_library[1219]: 1044 ‘libopenal32.so’ failed to load previously’.
[Mono] DllImport error loading library ‘openal32’: ‘Cannot load library: load_library[1104]: Library ‘/data/data/com.yaawn.ninjaman/lib/openal32’ not found’.
[Mono] DllImport error loading library ‘./libopenal32.dll’: ‘Cannot load library: load_library[1104]: Library ‘/data/data/com.yaawn.ninjaman/lib/./libopenal32.dll’ not found’.
[Mono] DllImport error loading library ‘./libopenal32.dll.so’: ‘Cannot load library: load_library[1104]: Library ‘/data/data/com.yaawn.ninjaman/lib/./libopenal32.dll.so’ not found’.
[Mono] DllImport error loading library ‘libopenal32.dll’: ‘Cannot load library: load_library[1104]: Library ‘/data/data/com.yaawn.ninjaman/lib/libopenal32.dll’ not found’.
[Mono] DllImport error loading library ‘libopenal32.dll.so’: ‘Cannot load library: load_library[1104]: Library ‘/data/data/com.yaawn.ninjaman/lib/libopenal32.dll.so’ not found’.
[Mono] DllImport error loading library ‘libopenal32.dll’: ‘Cannot load library: load_library[1104]: Library ‘/data/data/com.yaawn.ninjaman/lib/libopenal32.dll’ not found’.
[Mono] DllImport unable to load library ‘Cannot load library: load_library[1104]: Library ‘/data/data/com.yaawn.ninjaman/lib/libopenal32.dll’ not found’.
I’m able to play a Song using MediaPlayer just fine. It’s just the SoundEffect that fails.
If I try it on a device with Android 4.4.2 it works. On an emulator with 2.3.7 it fails.