I’ve recently tracked down an audio bug reported on an Android app, which was working fine, until I updated the Android SDK to 27 (think it was 25 before). There were some other changes, but the audio code has not been touched in quite a while, so it was a surprise when I got reports that certain devices (Samsung S7 running Android 8 and Pixel running Android 9) were behaving differently.
Once I managed to get hold of one of the offending devices, I found that (as suspected) the issue was due to some new low buffer sizes. Beforehand and on other devices I was getting buffer sizes of 4800, and now, at least on the Samsung, I am seeing 240. The code I wrote was based on the assumption that I was getting large buffer sizes
Since the device in question belongs to my client, and I had to give it back before completing the fix, does anyone know if it’s at all possible to simulate low buffer sizes in the Android emulator?