[Q] How to change the usb audio policy? - Android Q&A, Help & Troubleshooting

Hello,
From the 4.1 release, android began to support usb sound card.
When the usb sound card inserted in the device, audio stream will immediately switch to the usb sound card.
I want the audio stream does not immediately switch over, but I do not know which side to modify it.
Where are the usb audio policy code? :crying:

Related

Play music through USB?

Hi,
I wonder if it is possible to play music through USB. It doesn't work out of the box with CM 7, but maybe the is a hack or an app that would accomplish this?
Btw: Merry Christmas!
When you say: "through USB"; do you mean playing on the phone (with Music player) having audio output through usb? I haven't heard of one, but it could be theoretically possible as I have a USB Fm transmitter (also, docking bases have an audio out port) which plugs into the phone and transmits audio - so im sure a hack could be built? Otherwise, if you are asking about the ability to plug it into a USB port present on most modern stereo systems - the phone can simply be mounted and the stereo system would read it like any flash drive (have done this in my car)
Do you mean using the usb headphones?

[Q] Force Audio out via USB

I'm part way through completing an Audio/Charging cable for my car and was wondering if there was a way to force audio out via the USB instead of relying on the phone checking for the required voltage to put it into dock mode.
Reason being I want to troubleshoot my setup and be sure that the phone is trying to output audio via the USB port, my USB flex is faulty (I think) so I'm not sure if the sound isn't working because the ROM doesn't support audio out, if the cable I made doesn't work, the phone es faulty etc, if I can force audio over the dock then I know the problem is with the phone.
I've tried a few car mode apps but I don't know if they activate the audio out via USB mode or not.
I'm running Supernexus M1 (4.2) as my ROM if that matters.
Thanks,
Auzeras

[Q] Multiple media streams on same USB sound card.

Hi,
I am doing the feasibility analysis for a PC based software to be ported on Android Platform.
This requires at-least 2 sound cards connected to the Android device, i.e. Onboard Sound card (present by default), USB sound card, connected via a hub or Bluetooth.
The software requires, multiple calls to be present on the same sound card. For example, the user creates a call using the UI (Android App) and puts it on the USB sound card, and does this for 3-4 calls.
I have 2 doubts,
1. Does Android allow sound streams to be mixed on the same sound card.
2. If so does it have something similar to PulseAudio as on Linux, where by accessing the pulse sound card multiple applications use the same sound card ?

Honor 7 is not working with my car audio kenwood kmm u11.

Hello folks.
I bought this phone 3weeks ago and I can't use it with my kenwood kmm u11 car audio. When I connect my phone via usb to car audio, files are being read but sound is coming from the phone instead of car's speakers. Also I have tried it with some other car audios and it did not worked. My phone has B370 build and I could not find a solution for this situation. Please help me if anyone has a solution.
It can't work as a USB mass storage device as the radio doesn't have the right protocols.
When you connect it to a windows PC, it install drivers. A radio can't do that.
Sound only through BT or 3,5"mm jack.
zinko_pt said:
It can't work as a USB mass storage device as the radio doesn't have the right protocols.
When you connect it to a windows PC, it install drivers. A radio can't do that.
Sound only through BT or 3,5"mm jack.
Click to expand...
Click to collapse
I have an LG G2 and it works with usb connection. What is the difference? Honor 7 and LG G2 have Android 5.0.2. I can't get the point.
blast4620 said:
I have an LG G2 and it works with usb connection. What is the difference? Honor 7 and LG G2 have Android 5.0.2. I can't get the point.
Click to expand...
Click to collapse
You are mixing things.
blast4620 said:
When I connect my phone via usb to car audio, files are being read but sound is coming from the phone instead of car's speakers.
Click to expand...
Click to collapse
USB works like any other mass storage device. Might be compatible or not. The the device that's accessing the files plays and handles the output.
The car radio could have a protocol to control through USB the android music player. Check if H7's music player is working. There's also a similar protocol for iOS.
Finally, there's only 5 ways of getting audio out from Android, to other than built-in speaker:
1- 3,5" jack audio out (headphones but works with anything)
2- MHL, for compatible devices, but audio is automatically routed
3- HDMI out, audio automatically routed.
4- Bluetooth, audio automatically routed.
5- Wi-Fi cast, audio automatically routed.
You can use USB as an audio output, but you have to fiddle with the OS. And I'm not sure if it's possible with all devices.
@blast4620 some devices have inbuilt Mass Storage mode, but Honor 7 just have MTP protocol and no Mass Storage protocol.
MTP protocol requires some drivers to be installed on the device to which you are connecting your phone, so it can't work on your Kenwood Player.
Whereas Mass Storage mode doesn't require any drivers to be installed, it's just like Plug & Play(A USB Pen-Drive). So, your LG phone must have a Mass Storage mode, but Honor 7 doesn't have it.
I hope this helps.

USB DAC as main audio output

Hello,
I am making navigation system out of my android tablet, and i faced a problem that not all times i connect USB DAC, android sends audio data to USB, but rather to internal speakers (some times it does that, sometimes it does not)
Is where a simple way how to set to use USB as main audio source, and block headphones or any other audio source ?
Same apply to FM radio, i can plug headphones so it would act as antenna, but i still need audio to be rooted to USB DAC
Small support via PayPal for some one who give me the right answer
I would like to know too

Categories

Resources