I made simple class that capture voice input from mic and I build it for android .
when the app run for first time, the capturing working fine after passing record permission and I can see data voice data output, however, once I close the app and open it again, the Capturing state set to OK but I see no data at all .
If I disabled the mic permssion manually and restarted the app, it works fine once again, close it and open it , problem happen again .
Whats wrong ?!
I’ve checked with monitor.bat , log at first time has no errors, but when I start the app once again i get this strange error E/AudioRecord(24604): start() status -38 and this strange warning "Warning: OpenSLES SL_RecorderBufferQueue -1405068740"
Sounds like AudioRecord device is not released properly when closing the app. On which version of Android are you testing?
Could you share a small sample project?
I’ve moved to FMOD, and the same bug also shown up, what is strange is enabling mic permission manually cuz the same bug, but if I let the runtime permission request AUDIO_RECORD , then it run fine and thats why it run only for first time.
Dont know whats the way around, I really wish to hear from epic games or anyone about this issue.
I’ve found that [Voice]bEnable = true , is the issue even without using the voice capture interface with FMOD, set it to false , make FMOD working fine, but ofcourse I cant disable it if I’m going to work with unreal engine voice interface itself.