Direct audio streaming/bypassing audio mixer in Android (something like wasapi). - Android Q&A, Help & Troubleshooting

Hi. Is there app or kernel that allows stream audio from certain app, directly to internal DAC, bypassing Android audio mixier? I'm looking for something similar to wasapi plugin for Foobar2k in Windows but for Android. The thing I want to do is to give my audio player exclusive control of h/w audio and block other audio sources to be mixed together.
AudioManager is NOT what I want, because it only mutes all other sources.
My device is Xperia Z3 Compact with Android 5.1.
Thanks for help.

bump

bump
any ideas?

Related

AVRCP support?

Hi
Anyone know the specifics of the Hero's AVRCP support?
I've got a set of Sony stereo bluetooth headphones with play/pause/skip controls on them. They work fine on the HTC audio player, even when the phone is locked I can control the music.
However i've just signed up to Spotify and installed the app.... the controls don't work at all, however music is played through the headphones. If the HTC music application is running in the background but paused, pressing 'pause' actually starts the HTC music playing instead of pausing Spotify! This is the same as other audio apps like Google Listen, audio comes over Bluetooth but commands are not listened to.
It seems HTC Music is hard-coded to intercept all AVRCP commands, and not pass them on to a more suitable program if one is running. Can this be changed at all?

Downmix to mono audio (for headphones) possible?

I have an .avi file with a 5.1 audio stream, but the stream is messed up - most of the sound is coming out of the FR channel, because it was improperly encoded from a mono or stereo source. I can watch the video ok on a pc if I use gomplayer and set up AC3 decoder to downmix to mono - the audio from all channels is mixed and played through L and R channels of headphones.
The Question is:
Does android have an app or a plugin to downmix to mono audio, for Nexus 7?
I know Voodoo control panel can do this, but it doesn't work with N7.
I also tried a number of players -
mx player, mobo player pro, moboplayer, dice player, vplayer, rock player lite, bs player. There may have been a few more I don't recall at the moment.
None of these players have the option to downmix to mono.
Can anyone help please?
Thanks.
Forgive me, I'd like to bump the thread to see if anyone knows of a more elegant solution.
Try DSP Manager's Headset Virtual Room Effect and select a room type that sounds best for you. I am deaf in my left ear so I needed all my audio downmixed to mono and this did the trick.
edditnyc said:
Try DSP Manager's Headset Virtual Room Effect and select a room type that sounds best for you. I am deaf in my left ear so I needed all my audio downmixed to mono and this did the trick.
Click to expand...
Click to collapse
How does choosing one of the Virtual Room Effect options downmix the sound to monaural? And which option does downmix to mono?
*bump*
I too would love mono mix sound!
Stereo-to-mono effect on Windows PC and Android
First of all, a free audio-player app called AIMP on Google Play, Android, has a Settings -> Sound -> Output -> "Mix to mono" setting, which will be useful for this need.
Secondly, while I don't know which Android app he's talking about, edditnyc is most probably right, because on a Windows PC, and depending on the sound card, you can right-click the speaker icon in the system tray (bottom right corner), click Playback devices, right-click Speakers, click Properties, click the Enhancements tab (if it doesn't exist then perhaps the sound card doesn't support the feature or the latest drivers for the sound card aren't installed), scroll down and tick Headphone Virtualization. And while this does not downmix stereo or others channels to mono, it does something that emulates this effect of mixing stereo to mono on the PC; it allows you to hear sounds that are originally only playing on the left speaker, for example, on the right speaker. And to the best of my knowledge, this should work with all sound that plays from any program on the computer, including audio players, video players, and games.
Hope this helps those who need this for technical issues or for unilateral hearing loss, at least until Microsoft and Google start to recognize this need in their accessibility settings.

[Q] How to record Sound with USB Sound Card

I would like to create an app which could record the Sound from the microphone which is plugged into an USB Sound Card.
Like this apps:
USB Audio Recorder
USB Audio Recorder PRO
AudioFi - USB Audio Recorder
I couldn't use this apps because I need to implement some several features. I finished my bachelors degree in informatics.
It is sufficient that the app is only running on Android Lollipop and higher.
I found some sources which handles that topic but I wasn't able to develop such an app.
Could someone please give me an example how to communicate with an Sound Card and how to set the Sample Rate and the Bit depth.
sources:
source.android.com/devices/audio/usb.html
source.android.com/devices/audio/implement.html

List of music players outputting to akm dac

Hello,
An update of the music player i am using (AIMP for android, free) just release an update (v 2.60) with the ability to choose between opensl and audiotrack for the sound engine. In audiotrack, i'm pretty sure it is driving the akm dac 4490 inside my axon 7 (mine 2017G B06) : when i switch between super and normal in audio settings there's a blank and i hear clearly the difference.
I ve search for other players that can drive the axon 7 dac and i found :
- stock player
- neutron
- google play music
is it right ?
Have a good day.
nevro
Hi, neutron player false positive I think.
Switching super HiFi and changing sound in player does not mean that it fully utilitize akm DAC. You will get better Sound on YouTube on any stream.
I will check aimp new features, thank you for the tip.
Try n7 player is my suggestion.
Use this if your bootloader is unlocked and the whole system can use the AKM DAC. Works on system or Magisk. https://forum.xda-developers.com/apps/magisk/module-universal-deepbuffer-remover-t3577067/page11
Sent from my ZTE Axon 7 using XDA Labs
Infy_AsiX said:
Use this if your bootloader is unlocked and the whole system can use the AKM DAC. Works on system or Magisk. https://forum.xda-developers.com/apps/magisk/module-universal-deepbuffer-remover-t3577067/page11
Sent from my ZTE Axon 7 using XDA Labs
Click to expand...
Click to collapse
Excuse me, but can you explain why this enables the akm dac on any music player?
I don't quite understand.
Can you post a screenshot showing it works with your preferred player for example?
nfsmw_gr said:
Excuse me, but can you explain why this enables the akm dac on any music player?
I don't quite understand.
Can you post a screenshot showing it works with your preferred player for example?
Click to expand...
Click to collapse
I've been using it on custom ROMs and my assumption is that it basically wires everything to the AKM DAC. That's because a) even in Youtube, Netflix and games the sound was clearly from the AKM DAC, and b) I'm on stock, was using Youtube without the patch and eventually felt so let down by the crappy shoebox sound that I downloaded it and flashed it.
Try it for yourself: download the flashable zip, put some music on YouTube (on stock it can't use the AKM DAC even by toggling the switch, that's why you should use youtube), then flash the zip and try again after it boots. There's no way around it, it's not placebo. It might sound worse for you if you have different cans or you want a different sound though
nfsmw_gr said:
Excuse me, but can you explain why this enables the akm dac on any music player?
I don't quite understand.
Can you post a screenshot showing it works with your preferred player for example?
Click to expand...
Click to collapse
It allows the system sound effects like equaliser to affect all audio like how it was in KitKat. It's an option in ARISE and maybe default in Ainur (I forget, needs testing). This is just the function alone, it works well with the mod author's other audio FX installs.
I love Viper for tuning headphones for their individual Frequency Response with it's excellent graphic equaliser in V4A 2.3.4.0. Lowering output gain with it's advanced options seems to help lower Google Play Music so I can hear my game sounds higher, need to test this more to confirm. I find combining it's Speaker Optimisation with Dolby's surround with flat EQ produces the best speaker audio. Having tried most audio mods and effects on my old Z3C, keeping things simple with just these produces the best results. I'm yet to test a couple of mods that were incompatible with the Z3C and retest others on the Ax7. But as an audio purist and from experience, I don't believe any audio effects will improve audio rather than just modify the sound, unless they prove to retune the chip processing at a low level.
As Username suggested, have something like YouTube playing in the background and toggle the Hi-Fi to confirm a difference. It can be uninstalled by reflashing for system-based, or respectively via Magisk Manager, but TWRP backup in case. Audio isn't really something you can screenshot haha, it has to be on your device locally to be heard. This mod should be common knowledge by now for getting the most and expected out of an audio beast such as the Axon7 on stock.
Sent from my Xperia Z3C using XDA Labs
Thanks guys.
And what about PowerAmp on a stock rom?
Still seems troublesome on 704 alpha. Mine seemed ok but then started getting a fail error for hi res.
I just use Jet Audio as my default player with 32 bit enabled and AM3D plugin used. Sounds great.
By the way I discovered a conflict scenario when using the deep_buffer remover to allow the AKM DAC globally.
Whenever a non equaliser effect supported app (not GPlay Music or Neutron) plays any audio simultaneously over the top of another app's audio playing. The hi-fi toggle will no longer switch until audio is paused. This isn't typically a problem as Super mode is preferred and will continue to function when on headphones.
However it means if an audio track is playing on speakers and any non EQ supported app plays any audio causing the conflict, then plugging in headphones they'll be stuck on the Snapdragon DAC. The reason being that speakers use the Snapd DAC and plugging in without audio stopped continues the locked conflict where hi-fi won't switch to the set preference.
A simple workaround is to just pause/stop all audio and the hi-fi preference precedence will automatically function on resume. This can be done before or after plugging, it doesn't matter. To confirm this the hi-fi switch will then function immediately when changed.
This took me several reboots and testing various audio to pin the cause. The easiest way to tell the difference between the DACs is to turn up volume to a level that feels comfortably loud on Super, then whenever the SnapD DAC is in use instead the volume is noticeably not loud.
I haven't tested if a notification or ringer sound will cause the same conflict issue. Safer to just pause/stop all audio when starting headphone use in case of any previous audio having already caused the conflict.
Sent from my ZTE Axon 7 using XDA Labs

Audio passthrough (DTS, Dolby Digital)

Hi,
I was wondering if anyone has managed to get Audio Passthrough working. So if you've got a movie file which has DTS or Dolby Digital sound, and you connect your phone with a HDMI dongle to your Audio receiver which can process DTS or Dolby Digital, to actually get surround sound out of it.
I've tried VLC and MX player, none worked. If I connect the exact same equipment to my laptop, it does work. So it must be either the video apps or the phone. I've tried multiple settings in the apps (of course I've enabled audio passthrough), didn't change anything.
Any help on this?
Thanks!
Spir4 said:
Hi,
I was wondering if anyone has managed to get Audio Passthrough working. So if you've got a movie file which has DTS or Dolby Digital sound, and you connect your phone with a HDMI dongle to your Audio receiver which can process DTS or Dolby Digital, to actually get surround sound out of it.
I've tried VLC and MX player, none worked. If I connect the exact same equipment to my laptop, it does work. So it must be either the video apps or the phone. I've tried multiple settings in the apps (of course I've enabled audio passthrough), didn't change anything.
Any help on this?
Thanks!
Click to expand...
Click to collapse
Hello, i do it with a Encore mDSD USB DAC and some specific software of the play store; i extract DTS files, and read with sony music software, listening on a WH-1000XM2 Sony
Pascal536 said:
Hello, i do it with a Encore mDSD USB DAC and some specific software of the play store; i extract DTS files, and read with sony music software, listening on a WH-1000XM2 Sony
Click to expand...
Click to collapse
Alright but that's no surround sound. You're using a DAC which outputs stereo sound to a 3.5mm jack and a stereo headphones ...
I asking same question, do you find the solution now? I want to use smartphone to do audio passthrough to amplifier
Charley L said:
I asking same question, do you find the solution now? I want to use smartphone to do audio passthrough to amplifier
Click to expand...
Click to collapse
Nope never found a proper working solution, I just gave up

Categories

Resources