Audio quality issue #327
Labels
device
Indicates that an issue cannot be addressed due to the lack of access to the required device.
good first issue
Indicates that an issue for newcommers.
Describe the bug
Hi, I have audio quality issues on devices with Android 8 and 9 and some Android 10 devices. If I use default settings for AudioRecord I get distorted and choppy sound when streaming from the device.
To Reproduce
Stream from devices with Android 8 or 9
Expected behavior
Quality should be good
Version
0.14.1
Smartphone info.
Any device with Android 8 or 9, OPPO device with Andorid 10
Additional context
I've made temporary fix by coping your AudioRecordSource file and setting sampleCount to 2048 instead of default 1024, and it helped, the quality got better but it brought another issue. Now on newer devices (Android 11 and above and some Android 10) there is a crash when trying to stream
So I guess, setting a 2048 sample count is not an ideal solution and I have a question. PLUS the problem is NOT Android version specific, because I've tested multiple devices with Android 10 and for some of them there are sound quality issues and for some, there are not.
throws BufferOverflowException
toonInputBufferAvailable
or smth so I can catch the exception? Or maybe you could set sampleCount value based on the device (if it supports 2048 - set 2048)Screenshots
No response
Relevant log output
The text was updated successfully, but these errors were encountered: