Comments (5)
Maybe this helps some of you guys. As a workaround, I’ve added this part to the FAQs of my website:
No Sound when USB MIDI Controller/Keyboard connected
This seems to be an Android OS or driver bug on several devices (e.g. Sony XPeria Z1/Z3 running on Android 4.4). Devices with that bug think the connected USB MIDI device is actually an USB Audio interface and therefore route the audio output to the USB MIDI interface rather than the speakers/headphones (which does of course not work).
For now, the only workaround is to override the wrong audio routing in use of an app called SoundAbout, which can be downloaded from Google Play:
https://play.google.com/store/apps/details?id=com.woodslink.android.wiredheadphoneroutingfix https://play.google.com/store/apps/details?id=com.woodslink.android.wiredheadphoneroutingfix
Once installed, follow the steps below:
- Launch G-Stomper
- Plug in MIDI keyboard (and grant permission)
- Launch SoundAbout
- Select the desired media for audio in "Media audio" (headphones/speaker)
- Set "SoundAbout Service" to "ON" (with or without status)
- Go back to G-Stomper
Et voilà, audio works again.
Von: Kaoru Shoji [mailto:[email protected]]
Gesendet: Donnerstag, 12. März 2015 11:05
An: kshoji/USB-MIDI-Driver
Betreff: [USB-MIDI-Driver] Suppress mis-detection as USB Audio. (#33)
Some Android devices treat USB MIDI devices as USB Audio devices.
When such Android device attaches USB MIDI device, USB Audio will be selected as the audio output source.
As the result, sound playing will be stopped.
—
Reply to this email directly or view it on GitHub #33 .Das Bild wurde vom Absender entfernt.
from usb-midi-driver.
I've analysed the SoundAbout app, and wrote the code and document about this issue.
Please test the code on the branch.
I've tried the code with Xperia Z1(Android 4.4), it seems working well.
- The code branch: https://github.com/kshoji/USB-MIDI-Driver/tree/feature/fix_for_issue_33
- The document: https://github.com/kshoji/USB-MIDI-Driver/wiki/The-app-stop-playing-sounds-when-the-USB-MIDI-is-attached
from usb-midi-driver.
Hi Kaoru
Thanks a million, that’s great news. I’ll analyze the code as soon as possible and test it on the Z3.
Greetings, Andreas
Von: Kaoru Shoji [mailto:[email protected]]
Gesendet: Donnerstag, 19. März 2015 11:13
An: kshoji/USB-MIDI-Driver
Cc: planethcom
Betreff: Re: [USB-MIDI-Driver] Suppress mis-detection as USB Audio. (#33)
I've analysed the SoundAbout app, and wrote the code and document about this issue.
Please test the code on the branch.
I've tried the code with Xperia Z1(Android 4.4), it seems working well.
- The code branch: https://github.com/kshoji/USB-MIDI-Driver/tree/feature/fix_for_issue_33
- The document: https://github.com/kshoji/USB-MIDI-Driver/wiki/The-app-stop-playing-sounds-when-the-USB-MIDI-is-attached
—
Reply to this email directly or view it on GitHub #33 (comment) .Das Bild wurde vom Absender entfernt.
from usb-midi-driver.
Hi Kaoru
Finally our movement is done and I got back to work, and so found time to test your solution.
First of all, excellent work, the solution is simple and works out of the box.
There are 2 things that could be problematic:
-
The fact that you restrict it to sony, but the mis-detection appears to happen on many different devices from different manufacturers.
But as far as I see this is not an issue, since the restriction could simply be removed.
-
You hard link the audio output to the internal speaker/headphone jack.
But what if a user has a Bluetooth speaker system connected while connecting Midi Equipment?
Shouldn’t there be an option to select where to route the audio output?
I’ve also tested it on the Z3 with the latest Android update (5.0.2) where the mis-detection does not happen anymore (even without the fix). I don’t know if this applies to all Android 5.0.2 builds, but I’d say no, since the manufacturers often work with their own drivers.
However, thanks a ton, as is it already works around 95% of the problems.
Greetings, Andreas
Von: Kaoru Shoji [mailto:[email protected]]
Gesendet: Donnerstag, 19. März 2015 11:13
An: kshoji/USB-MIDI-Driver
Cc: planethcom
Betreff: Re: [USB-MIDI-Driver] Suppress mis-detection as USB Audio. (#33)
I've analysed the SoundAbout app, and wrote the code and document about this issue.
Please test the code on the branch.
I've tried the code with Xperia Z1(Android 4.4), it seems working well.
- The code branch: https://github.com/kshoji/USB-MIDI-Driver/tree/feature/fix_for_issue_33
- The document: https://github.com/kshoji/USB-MIDI-Driver/wiki/The-app-stop-playing-sounds-when-the-USB-MIDI-is-attached
—
Reply to this email directly or view it on GitHub #33 (comment) .Das Bild wurde vom Absender entfernt.
from usb-midi-driver.
Hi. I found this issue was the answer to my problems but I can't seem to make the workaround to work. I have registered the UsbAudioConnectionCanceller but I'm not having any intent being filtered. I'm currently using Android 5.1.1 on a Bq Aquaris M5. I'm trying with two distinct MIDI interfaces: Roland UM-ONE and Arturia Minilab. Has anyone here stumbled on this also?
from usb-midi-driver.
Related Issues (20)
- OnMidiInputEventListenerImpl take interpret wrongly about single byte messages HOT 3
- Add some utility methods on Input/Output device class HOT 1
- trying to send this sysex message for example HOT 1
- Send Midi Out through 5 channels HOT 2
- Separate RPN/NRPN messages for each cableId. HOT 1
- Synthesizer doesn't be registered to MidiSystem
- Can't find a onMidiInEvent
- Audio stops when USB midi device is connected HOT 2
- sequencer.start() method not generating any sound in Android application.
- MIDI Input Broken on Android 4 HOT 34
- Some vendor ids are wrong in device_filter.xml HOT 1
- Trouble adding MidiDriver as a module to a project HOT 3
- Missing Midi Events HOT 5
- Support multi process?
- Sysex not working HOT 1
- Filter Out Active Sensing HOT 1
- WaiterThread will spin and crash device
- Issue with Android 12 and PendingIntent
- I don't see this library working when device is connected to computer or ipad HOT 1
- Google Play Market url broken
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 usb-midi-driver.