Hi,
Should all Android hardware be able to support OpenAL as implemented in MonoGame?
I ask because it’s not working on the GenyMotion emulator running 2.3.x, however it’s working fine in GenyMotion running 4.x. Both my Android devices work fine but they are relatively recent (HTC One X and Galaxy S4).
I know OpenAL can be a bit flaky on emulators - the iOS simulator for example works through the internal Mac hardware but no through my external audio interface.
I should also mention this, which I think counts as a bug. If you try and create an instance of SoundEffectInstance and there’s no OpenAL support an exception is (probably quite rightly) thrown. However, even if you trap this and exit cleanly when garbage collection occurs another exception seems to be thrown in the bowels of MG which can’t be trapped…
System.DllNotFoundException: openal32.dll
[mono] at (wrapper managed-to-native) OpenTK.Audio.OpenAL.AL:IsBuffer (uint)
[mono] at OpenTK.Audio.OpenAL.AL.IsBuffer (Int32 bid) [0x00004] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.12-series/163212a9/source/monodroid/src/OpenGLES/OpenTK/Audio/OpenAL/AL/AL.cs:1388
[mono] at Microsoft.Xna.Framework.Audio.OALSoundBuffer.Dispose (Boolean disposing) [0x00011] in /Volumes/Docs/development/Xamarin/MonoGame/MonoGame.Framework/Audio/OALSoundBuffer.cs:123
[mono] at Microsoft.Xna.Framework.Audio.OALSoundBuffer.Finalize () [0x00000] in /Volumes/Docs/development/Xamarin/MonoGame/MonoGame.Framework/Audio/OALSoundBuffer.cs:45