google / oboe

Oboe is a C++ library that makes it easy to build high-performance audio apps on Android.
Apache License 2.0
3.73k stars 573 forks source link

Distorted sound with Samsung devices running Android 10, connected to USB audio interface #1138

Open apleton opened 3 years ago

apleton commented 3 years ago

Android version(s): 10 Android device(s): Samsung s10, Samsung s20, Samsung Tab s6 Oboe version: 1.5.0 App name used for testing: Hello Oboe

Short description Audio is noisy when device is connected to a multichannel (> 2 channels) audio interface. It only happens with AudioAA, not OpenSL ES, and only on Android 10.

Steps to reproduce

Expected behavior A clean sound is audible.

Actual behavior The sound is completely distorted.

Device Samsung s10, Samsung s20, Samsung Tab s6

Any additional context

soundFromHelloOboe.m4a.zip

philburk commented 3 years ago

Thanks for the report.

connected to a multichannel (> 2 channels) audio interface

What device? Make and model would help.

What if you use the same interface but only use 2 channels?

The M4A files cannot be analyzed easily because the compression hides the artifacts we are looking for. Please attach a very short PCM WAV file instead. One second is enough to analyze.

apleton commented 3 years ago

What device? Make and model would help.

Samsung s10, Samsung s20, Samsung Tab s6

What if you use the same interface but only use 2 channels?

2 channels is ok, no artefacts.

Please attach a very short PCM WAV file instead

The sound in this recording has been recorded with a microphone near audio monitors. So I don't think uncompressed audio file would help here ?

philburk commented 3 years ago

Mostly DJ interfaces

apleton commented 3 years ago

Here is a new uncompressed recording Setup : Reloop Beatpad 2 + Samsung s10 + Android 10 + app Hello Oboe. distortionHelloOboe.wav.zip

flamme commented 2 months ago

@apleton , thanks for filing the issue and sharing the record!

Could you mind sharing a bugreport when the distortion happens? Given the issue happens only with multiple channels USB interfaces, it may be related to down mix. That can be related to the audio framework or the HAL. If it is related to the HAL, we can file a bug to Samsung and work with them for a fix.

triplef commented 2 months ago

Thanks for getting back on this @flamme, much appreciated! @apleton is no longer working with us. I was under the impression that the Oboe team was able to reproduce this – I believe we might have provided some relevant DJ controllers to the team at some point, so maybe that’s an easier route for further investigation. But otherwise let me know and I’ll try to get you the bug report.

flamme commented 2 months ago

@triplef, thanks for the quick response! It will be appreciated if you can provide a bugreport. I don't have a device on my side. Will look around to see if I can get one for reproducing this issue.

Thanks,