Audio Out MHL - Galaxy S 4 Developer Discussion [Developers-Only]

Hey guys what im attempting to do is figure out a way I can modify the target audio out hardware when using MHL.
Im running CM10.1 (PACMAN ROM), When MHL is being used, it sends audio through the HDMI. Which is excellent in normal cases..
Although im using MHL with a PC monitor which does not support audio, so my preference is to use the inbuilt phone speaker. Preferred to be toggled via tasker.
I have stumbled across an app on the playstore called SoundAbout which does the trick, it allows audio to be played via the inbuilt speaker although when not using MHL whilst in call using a headset it causes some bugs.. so I want to avoid using this app all together if possible.
Im thinking a terminal command of some sort ? Or perhaps launching "SoundAbout" when a HDMI mode is activated via tasker & then killing SoundAbout whilst not in use ?
I would love to hear some ideas from you guys !

I figured out a way to do it, In simple iv disabled the SoundAbout service by default.. when the HDMI mode is trigger via tasker it enables the service, allowing the audio to pass through the inbuilt speaker.
If anyone wants more details on how I did this, please comment below & send me a PM and I will explain further.

Related

SoundHound/Shazam - inbuilt audio detection

Hi there,
I was wondering if there is anyway to make SoundHound or Shazam to detect musics that played from Internet radio, ie "tunein" or alikes, that usually plays only if you plug your headphones in?
It seems SoundHound and Shazam can only detect incoming sound using the phones mic, so if nothing is going to mic it will not detect anything at all.
I saw in a post from a Sony Xperia user that he accidently made it working but i think its only for that particular phone.
It would be nice to know if anyone has any workarounds/mods to make this work on any android device?
I think its phone dependent. For example, I have the HTC One, which let's me use SoundHound with audio I'm listening to with earphones. It may require special drivers, like how some PCs let you use what you hear on the computer as a recording device (Stereo Mix). That's the best way I can explain it, you need a device or kernel or ROM that has this "stereo mix" style feature

[i9305 LTE] Dock 'Dialler Audio' Kernel Modifications?

Hi guys, first post here on the forums. I have a question/request for something that bugs the hell out of me.
I own one of the iBolt car docks for my s3 4g; it's great and works well (provided I uses a custom kernel like Perseus), my issue is that although the custom kernels can properly detect the dock and route media audio through the aux out, none of them seem to be able to route my call audio through the aux-out and still have the microphone working.
I'm currently using Ripper Rom V9 with the perseus kernel, when I go to place a call it automatically puts the phone on 'speakerphone' and still detects my voice through the inbuilt microphone but I would much prefer for it to come through the aux-out, is this possible with modification of the kernel? This would be very useful for many people I would imagine, it is very hard to hear the other persons voice through speakerphone while my phone is docked up on the dash and I'm driving along. I read somewhere that samsung by default don't allow such configuration, I think it may have been on an audio-redirector app but it only redirected system and media audio.
Any information would be greatly appreciated :good:
Kane.

[Q] How can I switch from one audio output device to another?

Is there an app, widget, whatever that will allow me to easily switch the audio output from one device to another? e.g., I am connected to both headphones and a bluetooth A2DP device and audio is playing through the the A2DP. I want to be able to switch to headphones or even the built-in speaker without turning off the A2DP device or connecting/disconnecting the headphones.
I have a couple of devices that I would like to do this on:
Samsung Galaxy S3 (Sprint) w/ AOKP 4.2.1 (root access enabled)
Archos G9 w/ ICS 4.0.4 (root access enabled)​
I have searched the Play Store, XDA, and the open interwebs for a solution, but search terms like "android audio output device switcher" are frustratingly broad and difficult to narrow. I previously came from an iOS background, where the audio switcher was built into the OS audio system, and the headphones, iPhone output, bluetooth, and any AirPlay devices could all be selected with relative ease. Ideally, I'd like something that works as easily, perhaps as a lockscreen or notifications widget. A solution that requires root would be fine.
Many thanks!
I was hoping to see any response or direction .. I'm also looking for a solution for this
Really late to reply, but SoundAbout should do that trick.
2018 and still nothing aside from SoundAbout, which crashes on me. ??
u can use lesser audioswitch from playstore.it works flawless.

How to get alarms/notifications in speaker if headphones plugged in.

Hello Fellas!
Recently i started to listen to music/audiobooks before i go to sleep,
the problem is that in android 4.2/4.1 even with clock apps that tries to force audio through speaker (at least on my phone) only plays the audio through the headphones which has fallen of during night.
So i though i should make an post instructing how i got the alarm to play through the speaker even with the headphones connected.
the answer is Soundabout combined with Tasker (you could probably use other automation tools as well)
1. download soundabout free from market.
2. set Media Audio to speaker.
3. force close soundabout.
4. Download Tasker (which is a paid app but is well worth the money) (or other automation tool)
4a. go to settings and untick beginner mode.
5. Download and place "userbackup.xml" in the "tasker" folder in the root of your sdcard
userbackup.xmll
6. Open tasker, press the menu button --> data --> restore.
This hack will open soundabout at 6am if the headphones are plugged in, if you are rooted it will also force kill soundabout when you unplug.
NOTE: if you have any profiles allready you should make a backup and add my profile at the bottom of your "userbackup.xml."
Hope this helps!
Best Regards
Thanks
No problem, the only problem is that you have to force close the app every single day though,
i emailed the developer of soundabout about this and he said he would try to make a tasker plugin to make this easier!
Hey guys.
Any update on this?
Thanks
Alan
I dont get it... Soundabout runs a service, so it should be able to force audio through speakers without the need to fc it and start it via Tasker
But the fact is that it does not work on my phone. I have a headset plugged at all times and I just miss all calls
It is said that music apps can prevent soundabout from routing audio through speakers.. i am still testing, will post if I come to a conclusion on what music app does not bring this issue
I ****ing hate those ****tards at google who thought they should change that... since the beginning of time, call and sms alerts always went to speaker regardless the headset is plugged
maeman said:
I dont get it... Soundabout runs a service, so it should be able to force audio through speakers without the need to fc it and start it via Tasker
But the fact is that it does not work on my phone. I have a headset plugged at all times and I just miss all calls
It is said that music apps can prevent soundabout from routing audio through speakers.. i am still testing, will post if I come to a conclusion on what music app does not bring this issue
I ****ing hate those ****tards at google who thought they should change that... since the beginning of time, call and sms alerts always went to speaker regardless the headset is plugged
Click to expand...
Click to collapse
I guess you dont have to fc, but i atleast had to force everything to the speaker. So the easiest way to get the sound back to my earplugs was to force close it.
The updated version does it automaticly so im good for now
Will pay $ for tasker script.
Hi to all of You.
I would like to have profile that force incoming call ringing and notifications to speaker when wired headphones with mic is plugged but not media sounds like YouTube or games, media sounds should be played only by wired headphones with mic.
I am willing to pay some reasonable amount of $ for person, who will write such tasker script for me.
([email protected])
Audio through external speaker with headphones plugged in - Tasker
Any better solution found for this yet? I would like to get tasker to still play audio through the external speaker when the headphone jack is plugged in. I would prefer not to use another app for this, just a tasker profile.
I just received a pressy like headphone button but it mutes the external audio since the phone thinks headphones are plugged in. The apps available for the Klick buttom don't seem too trust worthy or functional. I still want to use it to keep the dust out of the jack but not miss all the audio calls and notifications. A simple tasker profile to accomplish this would be great.
Any ideas?
pzayx said:
I guess you dont have to fc, but i atleast had to force everything to the speaker. So the easiest way to get the sound back to my earplugs was to force close it.
The updated version does it automaticly so im good for now
Click to expand...
Click to collapse
also with Xprivacy you can change and give permission to prevent soundabout from changing speaker after, or there are many other permissions it's asking for.
Couldn't dig deeper, but may give an idea to someone.
I had a similar issue, except in my case I use a wired handset with my phone and I wanted notifactions to sound through the phone speaker rather than through the handset. My solution was to use the Automate app with the configuration attached. Plugging the handset mutes the notification, then on SMS received it plays a sound, with the output stream set as "ring" so it sounds through the phone speaker.
As far as I'm aware, it's not possible to play audio through two streams simultaneously- don't cross the streams...
I'm using a Sony Z3 with LineageOS, but I guess this should work with any android compatible with the current version of Automate.

Switching Bluetooth "media audio" off for car dock

I'm running the current CM10.1 nightlies on an old Verizon Fascinate (Samsung Galaxy S i500). My issue is pretty generic, so I'm posting here...
I use a Plantronics Bluetooth headset that supports various profiles - represented in the JB 4.2.2 Bluetooth configuration as selectable options for "phone audio" and "media audio".
I usually want the headset configured for both, but when I put the phone in my car dock, I want the media audio redirected to the dock's audio output (via USB).
If I turn off the headset, the audio is configured to route through the dock properly and automatically... But I still wish to use the headset for phone audio when the phone is docked. If I manually configure the headset only for phone audio, that works too - but what a hassle going in and out of my Bluetooth configuration before and after each docking operation .
Any ideas on a way to automate this? Anyone know of a slick app that can handle this?
Sent from my SCH-I500 using xda premium
Did you ever come up with an answer for this? I'm definitely interested in the same thing I just haven't found a solution either.
jeffderek said:
Did you ever come up with an answer for this? I'm definitely interested in the same thing I just haven't found a solution either.
Click to expand...
Click to collapse
Hi Jeff - yes I did get an awesome Dev working on the vzw fascinate, who goes by the handle of djp952, to adopt the idea and implement it in his GeeWiz ROM http://forum.xda-developers.com/showthread.php?p=38960693
I've since picked up a Samsung gs3, and haven't had the time/energy to plead for same option on the cm10.1 platform or better yet at the AOSP level. Please feel free to advocate for it.
Sent from my SCH-I535 using xda premium

Categories

Resources