Add Android support for Real Tone guitar cable
Using an OTG Micro USB adapter, I'm able to connect my Real Tone cable to my Android phone. It's detected by the kernel and Linux subsystem, but it appears the Unity Android app only supports the "Device microphone"
Relevant logcat output:
02-22 19:52:36.632 2279 3448 V WiredAccessoryManager: Headset UEVENT: {SUBSYSTEM=switch, SEQNUM=127193, ACTION=change, SWITCHSTATE=1, SWITCHNAME=usbaudio, DEVPATH=/devices/virtual/switch/usbaudio}
02-22 19:52:36.632 2279 3448 V WiredAccessoryManager: newName=usbaudio newState=4 headsetState=4 prev headsetState=0
02-22 19:52:36.632 2279 3448 I WiredAccessoryManager: MSGNEWDEVICESTATE
02-22 19:52:36.633 2279 2279 V WiredAccessoryManager: headsetName: connected
02-22 19:52:36.634 1865 3445 D APM::AudioPolicyManager: setDeviceConnectionState() could not find HW module for device 00000800
02-22 19:52:36.634 2279 3444 E AudioService: not connecting device 0x800 due to command error 1
02-22 19:52:36.639 2279 2295 D UsbAlsaManager: Adding ALSA device AlsaDevice: [card: 1, device: 0, type: 2]
02-22 19:52:36.644 2279 2865 D EventHub: No input device configuration file found for device 'Hercules Rocksmith USB Guitar Adapter'.
02-22 19:52:36.650 2279 3662 D UsbHostManager: Added device UsbDevice[mName=/dev/bus/usb/003/002,mVendorId=4794,mProductId=255,mClass=0,mSubclass=0,mProtocol=0,mManufacturerName=Hercules,mProductName=Rocksmith USB Guitar Adapter,mVersion=1.16,mSerialNumber=null,mConfigurations=[
02-22 19:52:36.650 2279 3662 D UsbHostManager: UsbConfiguration[mId=1,mName=null,mAttributes=128,mMaxPower=50,mInterfaces=[
02-22 19:52:36.650 2279 3662 D UsbHostManager: UsbInterface[mId=0,mAlternateSetting=0,mName=null,mClass=1,mSubclass=1,mProtocol=0,mEndpoints=[]
02-22 19:52:36.650 2279 3662 D UsbHostManager: UsbInterface[mId=1,mAlternateSetting=0,mName=null,mClass=1,mSubclass=2,mProtocol=0,mEndpoints=[]
02-22 19:52:36.650 2279 3662 D UsbHostManager: UsbInterface[mId=1,mAlternateSetting=1,mName=null,mClass=1,mSubclass=2,mProtocol=0,mEndpoints=[
02-22 19:52:36.650 2279 3662 D UsbHostManager: UsbEndpoint[mAddress=130,mAttributes=13,mMaxPacketSize=100,mInterval=1]]
02-22 19:52:36.650 2279 3662 D UsbHostManager: UsbInterface[mId=2,mAlternateSetting=0,mName=null,mClass=3,mSubclass=0,mProtocol=0,mEndpoints=[
02-22 19:52:36.650 2279 3662 D UsbHostManager: UsbEndpoint[mAddress=135,mAttributes=3,mMaxPacketSize=16,mInterval=1]]]]
02-22 19:57:33.519 23013 23032 I Unity : Available microphone devices: Android audio input, count = 1
02-22 19:57:33.519 23013 23032 I Unity :
02-22 19:57:33.519 23013 23032 I Unity : (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)
02-22 19:57:33.519 23013 23032 I Unity :
02-22 19:57:33.519 23013 23032 I Unity : Reported range of possible sampling rates: 44100-44100 Hz
02-22 19:57:33.519 23013 23032 I Unity :
02-22 19:57:33.519 23013 23032 I Unity : (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)
02-22 19:57:33.519 23013 23032 I Unity :
02-22 19:57:33.519 23013 23032 I Unity : Android: Forced recording sampling rate to 44100
02-22 19:57:33.519 23013 23032 I Unity :
02-22 19:57:33.519 23013 23032 I Unity : (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)

-
Rodrigo Pérez Fulloni commented
On newer android versions the Rocksmith cable is actually working, since I can tune the guitar perfectly (Samsung S8, Android O)
But since it is not detected as a separated device, actually it is showed in Yousician as "internal device" no matter the driver I select, *the mixer is not available* so I am unable to hear the guitar.
*I think there's nothing to implement now, you only have to enable the mixer feature for internal devices and not only other sound interfaces*
-
PAULO GIOVANNY SIPAUBA MAGNO commented
Is there any plans to implement this? I use the real tone cable on the iPad and works flawlessly. I reallywould like to dump that huge headache and be able to play on my android phone.
Any workarounds? Is there any way to connect to the Android? through the headphone jack? using irig or any other interface?
-
Antmax commented
There are quite a few USB cables out there. I have a realtone cable and a $10 instrument to USB cable that work with the desktop version.
I don't play mobile yousician because the note recognition is nowhere near as good as a direct wired interface of some kind.
-
Benet Haller commented
I'd use all my votes for this one but it appears that the max I can do is 3
-
Benet Haller commented
It looks like that code would also work for the vox amplug I/o too.
-
Margo commented
I gave all votes I had (I ran out of votes really quickly...). But something is wrong with this system and I had to click a few times because it deducted my vote but did not add that vote to the topic.
It would be absolutely wonderful to play Yousician with rocksmith cable on android tablets. I am looking forward
-
Jan commented
votes reset?????
-
Slawek commented
votes don't add!!!!
-
Slawek commented
Yes, please