[Q] Audio input to output - E 2015 Q&A, Help & Troubleshooting

Hay guys I'm running second generation moto e 2015 LTE. I was wondering if anyone could give me a hand in trying to figure out how to route my Androids audio output to its input. From inside the Android it self. You see I'm trying to play music and prerecorded audio. That way it streams properly and can be heard by others in the correct quality. Having the idea that it can be accomplished somehow in the root. I work with C++ but I'm kinda of at a loss here. Any help would be greatly appreciated. I apologize ahead of time for writing the title backwards.

This should be possible by manipulating the ALSA settings within Android. Unfortunately, this is not particularly easy to do.
This page has a bunch of good information that might help you:
http://stackoverflow.com/questions/...dio-creating-alternate-sound-paths-in-android

Related

[Q] Audio drivers interaction and where to start

Hi everyone
I am looking into making a app with system wide audio streaming (watever sound the phone is pushing out of the phone streamed) and was wondering where I should start and where do I find the audio drivers,I do need a lot of help so if you can contribute in any form or way or tell me that I can do it without root will be great
I am hoping someone here has some knowledge and can help in any way or form

audio question NO VIDEO

hi there,
if this is an annoying noob question, please ignore. i have read the forum rules and stuff, and watched the video. maybe my question is out of place here, but i thought i would give it a go.
i have a question regarding recording AUDIO, ie NOT audio in a video recording, on the galaxy SIII.
i'm a record producer and i would like to make decent sounding recordings of bands in rehearsal. i would like them to be not distorted and preferably in stereo. the only app that i came across on the market so far that gives me the option of recording in stereo and controlling the input gain is recforge pro. however, its 'stereo' options never seem to use the 2 mics on the SIII (its 'stereo(native)' mode records only either left or right side at random) , and in recording loud bands, the audio gets distorted anayway, even if i put the input gain on its lowest setting.
i just want to know if what i want is possible with this phone. i've been scouring these forums for hours now, and honestly couldn't find any decent answer to my question. if what i want is possible only by rooting the device and installing a custom ROM, i'm willing to do so. but i don't have the time to spend days in trial and error. so, if anyone here could answer my question and/or is interested in developing a ROM for me, i would most definitely be grateful.
thanks in advance,
stokki.

[Q] [DEV HELP PLEASE] - Record Line-in in my app

Hey guys and girls;
im new to android dev and java but have managed to get most of the stuff i need/want working in my app, the last piece of the puzzle i am trying to get working is recording a line in input to some sort of audio file, the problem i have is i cant find ANYTHING on how i might go about this.
Can someone give me a bit of help as to how i can get this working? I am not asking for full source (although that would clearly be helpful...) but more some directions as to where i can start making this work by myself.
Thanks for any help that can be offered;
Andy
EDIT:: Sorry just to be clear, i dont want to record a phone call or anything, i want to record from an external audio source, so was planning on using the pseudo line in from the headphone jack

How do I record Personal Voicemail Greeting from my android emulator Windows 7?

I rarely EVER post on forums, because I usually research on google for hours and end up getting my answers.
Well this seems to not exist on Google, so I will do the deeds of asking it on my favorite android forums.
I use Metro PCS on my LG phone and I really really badly want to know if I can record a person voicemail greeting using any android emulator on my computer.
I currently use Bluestacks, but if the solution is found for a different emulator, I'll use it.
I want to do this because I have a super high quality Blue Yeti Microphone, and combined with Audacity I can make amazing audio. Having that on my phone as my personal greeting would be like a dream (I would have the highest quality audio android will be able to play)
I did this before, but recorded the audio from my speaker, which you could still hear the air noise in my room.
If there's no way to do it on an emulator, or you don't even know then there's gotta be phone parts that allow me to hook up an audio device as my computer.
Is this possible?
Have been trying to do this for two years now. :crying:
My android phone IS rooted.
Any help would be greatly appreciated, even if you don't really deal with this stuff.
Other than that, I'll just have to wait this out and hope this doesn't fall to the bottom of the forums.

Bluetooth and system notification sounds

I know we had this issue before, and I don't want to revive old hostilities. I'd like to make this clean and objective discussion.
As you probable know by now, some time ago Google have decided to make android phones play *any* sound to *any* connected BT device, no matter if those devices are capable of playing those sounds or not, and no matter if the users are using (wearing) those devices or not. And this results, for example, in missing text messages, when your head phone is still switched on but you're not wearing it. It also will interrupt your favourite song that you're listening to on your car's radio, with a loud and nasty sound over your car's speaker. And it will also keep you from hearing medical alarm signals if your head phone is in your pocket.
As far as I know, this change in BT behaviour was introduced somewhere between Android 7 and Android 8 (LOS 14 and LOS 15), and as far as my programming knowledge goes, it should be possible to reverse these changes, to make a phone play system sounds over the phone's speaker, while music and calls are still routed to a paired and active BT devices.
So, my questions are these:
What is the big advantage of the present BT behaviour compared to the old behaviour?
How much work or effort would it take for LOS developers to re-code the BT behaviour from LOS 14 back into LOS 17 and above?
If you need help: how can normal people like me with no big development skills help you with this? Would it be a question of money?
How much (in)stability would current and future LOS versions gain through the necessary changes?
Would making these changes be illegal in any way? Would Google sue LOS developers, or would Google send their Men In Black, if LOS developers dared to undo Googles decision?
Although I do not understand the cleverness behind Google's decision, and frankly, no one I talked to about this did understand it, I'd rather make this a discussion about the possibility to undo these BT changes. It would be very obliging to get some useful answers to these questions. Thanks in advance!
Google and LineageOS devs are aware of it and don't see it as an issue:
https://gitlab.com/LineageOS/issues/android/-/issues/950
https://issuetracker.google.com/issues/123758732
https://issuetracker.google.com/issues/125166459
https://issuetracker.google.com/issues/139884122
I can't for the life of me understand why anyone would want it this way. I, for one, see notifications and media audio as separate things that serve different purposes. I regularly pull out my bluetooth earbuds or turn off my bluetooth-linked hi-fi system without remembering to disconnect them at my phone. It's one thing if I go to youtube or play music and can't hear it because of this, but another thing entirely to miss a day's worth of notifications.
A lot of people have been really vocal about this -- just read some of the stories -- but these devs are so sure of themselves that they won't even offer a toggle setting for this. I'm tired of the arguing... LineageOS is free software and I'll patch and build it to suit my needs. But like you, I am not an Android developer, and I don't even know where to start to look for what controls this. I'm sure it's just a couple of lines tucked away in some file, but all I can do is ask, please, for someone out there with greater skills than me to show me what to change!
So I've been digging into the source but it's really above my head... seems like there must be a config file or set of constants somewhere. I'll keep digging and share if I find anything.
Another approach that seems possibly doable is an app that routes the notification sounds through the alarm stream. I have a calendar app that is configured to sound through the alarm stream and that sounds the way I want -- through both the device speakers and any bluetooth or wired headphones.
Sorry about the delay:
htsmi said:
Google and LineageOS devs are aware of it and don't see it as an issue:
https://gitlab.com/LineageOS/issues/android/-/issues/950
https://issuetracker.google.com/issues/123758732
https://issuetracker.google.com/issues/125166459
https://issuetracker.google.com/issues/139884122
Click to expand...
Click to collapse
The answers given by Google's team are living arrogance, a disgrace to themselves and an insult to the users!
Any (good) news on this subject?

Categories

Resources