-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support USB AUDIO in effects #18
Comments
Indeed! The problem is I do not own one of those dongles, so there is no way I could test it... Moreover, the only references I could find regarding USB Audio were these (that work only on Android 23+ - Marshmallow+): Do you own one of those devices? If so, would you consider writing a code to detect usb audio, please? Then, I would merge your code into FPlay's code :) |
I own one but I'm not able to write code. I may be able to get another soon, in which case I'd give one to you.
The AudioFX app in LineageOS as well as DSP Manager support USB audio.
…On 26 February 2017 12:39:35 GMT+00:00, Carlos Rafael Gimenes das Neves ***@***.***> wrote:
Indeed! The problem is I do not own one of those dongles, so there is
no way I could test it...
Moreover, the only references I could find regarding USB Audio were
these (that work only on Android 23+ - Marshmallow+):
https://developer.android.com/reference/android/media/AudioDeviceInfo.html
https://developer.android.com/reference/android/media/AudioManager.html#getDevices(int)
Do you own one of those devices? If so, would you consider writing a
code to detect usb audio, please? Then, I would merge your code into
FPlay's code :)
|
Android USB audio sometimes quite buggy, I have a highly modified DSP Manager in my repository, my experience show some device may have conflict when using USB audio output, the system always mix up with analog output. So USB DAC can be output as analog output. |
OK the Loudspeaker tab changes the USB output, on my phone at least. It opened on loudspeaker tab when I opened the app with dongle plugged in but I didn't realise it would work until I read James' comment.
|
Precise detection of audio output is kinda buggy on Android... Check out methods Player._checkAudioSinkViaRoute() and Player._checkAudioSink() (lines 3318 and 3369). They are a massive workaround, sadly, because different devices behave differently :( Reading through the code in AudioSystem.java, I came across two constants: Perhaps they could be used to try and detect whenever audio output is being done by the speaker or by an USB device??? |
I don't even know is it work or not, have to do experiment on that. Carlos is right, different vendor may code audio framework differently... |
The effects only support headset, headphones and loudspeaker but not audio via USB dongle.
The text was updated successfully, but these errors were encountered: