On my Samsung Galaxy S10 Plus, FMOD automatically switches output from earphones to speakers when I unplug, but not the other way around.
Even after plugging in, FMOD keeps playing using the device’s speakers only.
This happens on S10 Plus with both 32bit and 64bit versions of the FMOD core library. (The latest 2.00.11)
However, the issue doesn’t occur on my S7 Edge, so I’m very confused.
For your information, the app runs better on S7 Edge which is old and low-powered compared to S10 Plus.
I mean, on S10 Plus, I constantly get light clicking noises, so I thought I needed to increase the buffer size, but on S7 Edge, such noise isn’t there at all, so now I don’t know what it is.
I guess this may have something to do with AAudio, because FMOD chooses Open SL ES over AAudio on Android 8.0 devices. (S7 Edge runs Android 8.0)
So, I’ll give it another test with Open SL ES on my S10 Plus when I get back home.
Yes, just switching from AAudio to Open SL ES fixed all the issues.
No clicking noises, no switching output issues.
I tried both 32bit and 64bit versions.
By the way, I was originally talking about wired earphones but to understand the issue better, I also tested with wireless earphones and found the same issue is there and can be fixed with Open SL ES too.
FMOD API has two bugs with AAudio.