How can I get audio mixer output or playing music stream? - General Questions and Answers

Sorry this is not "general" question but I have no enough posts to ask in developers room. I do not want waste a time therefore I ask what I really need. Please answer on topic.
I need get stereo PCM 44/16 audio in buffer but I still cannot find good way to do that. I can get "mic" stream but it is not exactly stereo - buffer has odd samples equal to even. It is 2 channels mono instead. Any solution for native Qt/C++ or Java code is acceptable for me. But it must work in all Android versions starting from 4.0.3. I need "what you hear" signal or at least "now playing music" stream. This must work with any music source. I look at tiny-ALSA but I'm not sure if it will solve my task. Should I distribute tiny-ALSA with my application or it is built in all Android devices? Or may be I can get just a stream like OSS /dev/dsp gives? I tried copy from /dev/snd/pcmC0D0 but without success. Any help appreciated.

Related

[Q] Audio tags when driving

I have a Galaxy S2 and I really like the fact that I can play my music with Bluetooth over my car speakers. Unfortunately, the only player that recognizes tags (artist names and song titles) is the stock player. This may seem trivial to some but I like seeing the artist name and song title on my car screen.I've contacted a couple of devs regarding this and was told that Android Developers do not allow access to the code for the tag protocol. Therefore, they are limited when it comes to this and there is nothing they can do about it. I don't understand why app developers are not allowed to do this. I think that they could probably sell more product if they could.
I don't know if this is the place to rant about this. I just want to know where I could call or write to make a complaint....please chime in if you know
Thanks

[Q] Samsung Galaxy Note (GT-N7000) can record from radio - but in MONO! :(((

Me, like many people, was fascinated by the Galaxy Note's ability, unlike most android devices, to record live-analog FM Broadcasting out of the box and the simple clean UI.
As you can guess - I am EXTREMELY frustrated to find out the huge differance between the source and what became of it! The result is sucky, annoying .3ga file format (never seen like before) at a poor bitrate of 61Kbps and as written in title - THE OUTPUT IS MONO!
It seems like I'm the only person in the world who is bothered with this cruel factory restriction, as I searched the web for not much of a tiny mention (or maybe all of you are too shy than shouting out "the king is nude!"). The radio plays stereo and keeps playing stereo while recording. No way that it would sound worse for the 2nd time and farther! Just when Samsung finally decided to implement this feature - they screwed up big time with it and no settings to play with, at least for the average user's sight. My older Nokia N900 is able to do it out of the box, encoding of AAC format at 128Kbps bitrate and also .WAV option.
There must be a command line somwhere that states "output file = .3ga; output mode=mono" and change it to "mp3, stereo" through root access or something similar.
Please tell me some good news about a possible workaround, for I really wouldn't like to carry outside 2 bulky devices...
Somebody? please???
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Moving to Q&A
mustasusi said:
Somebody? please???
Click to expand...
Click to collapse
1+
I think i was the first i notised, my Note fist day! first i got happy with recording option in FM, then ahh!! F*** you Samsung..
Is there a "record "what you hear.apk in Stereo internal" for for android. that some one have knowledge about. But i dont know how and when the Analog/Digital converter handles the Fm radio. Perhaps atacking the Samsung Ripper the only way.
BUBA0071 said:
1+
I think i was the first i notised, my Note fist day! first i got happy with recording option in FM, then ahh!! F*** you Samsung..
Is there a "record "what you hear.apk in Stereo internal" for for android. that some one have knowledge about. But i dont know how and when the Analog/Digital converter handles the Fm radio. Perhaps atacking the Samsung Ripper the only way.
Click to expand...
Click to collapse
I found a 3rd party application called "Spirit FM" which works well with Note, has better interface and it records too. But don't expect too high for the same .3ga format the bitrate is way lower (be it 8kbps!!!) and still mono of course. Perhaps one can get into it's source code since it's 3rd party and adjust it or at least change the bloody output! There must be a way...

Play multiple audio sources

Hey,
I don't know in which forum I am supposed to place this topic and I thought this would be a safe bet. I'm sorry if I was wrong.
I was wondering if it's possible to play multiple players at once. For example, I'm playing YouTube in the background and my own sound player as well or maybe Spotify at the same time, is that possible? If I do it now one player gets paused by the other, so I assume I'm supposed to some change some setting of sorts. Or is it different per app, is it an individual setting per app?
Any kind of answer is welcome. Thanks anyway!

Music recording sounds very bad

Hi everyone,
It is common knowledge (I hope) that when you try to recording a video or just a simple audio file with some music (for example a song during a concert or, in my case, an audio while I play the guitar and I sing something) everything sounds very very badly! Now, my question is:
Is it a software or hardware problem?
This is important to me because I use very often my phone for these kind of things, mostly during a concert. I've tried to look for something about it but I could't find any useful answer. I hope it's a software problem and it can be fixed just changing a ROM. I'm using the phone as stock now. With no root and, of course, no custom ROM. Thank you
Wtf, completely disagree...
Em, I am a musician, and I wouldn't really agree. There's no way that recorded music is better than live music cause obviously, the live one is 100 times much more powerful.
Do you have a case on it?
(Lol, don't cover any of the mic ports with your fingers and keep people, objects out of the sound path.)
Are all the mic ports open and free of debris?
What file type are you recording in?
I wouldn't expect miracles from any smartphone for HQ sound with the built in mics. Some do fairly well.

Why sound recording is so bad?

Hi everyone,
It is common knowledge (I hope) that when you try to recording a video or just a simple audio file with some music (for example a song during a concert or, in my case, an audio while I play the guitar and I sing something) everything sounds very very badly! Now, my question is:
Is it a software or hardware problem?
This is important to me because I use very often my phone for these kind of things, mostly during a concert. I've tried to look for something about it but I could't find any useful answer. I hope it's a software problem and it can be fixed just changing a ROM. I'm using the phone as stock now. With no root and, of course, no custom ROM. Thank you
I feel the same about the audio quality, it's pretty bad.
I actually had recorded a bunch of footage from a birthday party and the audio stopped recording entirely after about 5 seconds in...
punticci said:
Hi everyone,
It is common knowledge (I hope) that when you try to recording a video or just a simple audio file with some music (for example a song during a concert or, in my case, an audio while I play the guitar and I sing something) everything sounds very very badly! Now, my question is:
Is it a software or hardware problem?
This is important to me because I use very often my phone for these kind of things, mostly during a concert. I've tried to look for something about it but I could't find any useful answer. I hope it's a software problem and it can be fixed just changing a ROM. I'm using the phone as stock now. With no root and, of course, no custom ROM. Thank you
Click to expand...
Click to collapse
The microphone and the output jack is only bad, other than the audio speaker. It's common usage to put low hardware on smartphone like these to push on other features.
V4A Magisk and xXxNoLimits it's good to fix this.

Categories

Resources