We are using miniaudio for audio playback in our game.
When the game is switched to background running on Android system (tested on multiple Android phones, haven't tested on other OS),
plugging or unplugging the headphone then relaunch the app, the audio playback will stop entirely.
Only quiting and restarting the app can solve the problem.
The issue will only occur when switching the playback device outside of the app, switching in app will not produce the same issue.