Comments (6)
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 :)
from fplayandroid.
from fplayandroid.
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.
Whatever @carlosrafaelgn may experiment on USB audio :D
from fplayandroid.
from fplayandroid.
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:
public static final String DEVICE_OUT_USB_ACCESSORY_NAME = "usb_accessory";
public static final String DEVICE_OUT_USB_DEVICE_NAME = "usb_device";
Perhaps they could be used to try and detect whenever audio output is being done by the speaker or by an USB device???
from fplayandroid.
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...
from fplayandroid.
Related Issues (20)
- Delay when adding songs HOT 2
- Add intents. HOT 3
- Swipable status notification. HOT 3
- Album Art HOT 4
- Number of albums and files in "Artist" view HOT 4
- Add shoutcast support? HOT 2
- Tweakable buffer size for streaming HOT 3
- Firebase Support?
- Auto media include +
- Frequently Asked Question (FAQ) Proposal
- Change sorting of {Artists, Albums, Files, ...} views.
- Search for stuff HOT 1
- Add Privacy Policy and Contributor's guidelines
- Support for DSP Manager HOT 2
- Support for DSP Manager
- Persistent settings for automatic turning off FPlay HOT 3
- "clear existing list before playing" option broken. HOT 6
- APK File HOT 1
- Equalizer has one bar too small on Samsung S4 Mini HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fplayandroid.