maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Listen music on a call - Amixer (https://talk.maemo.org/showthread.php?t=71321)

lauksas 2011-03-21 23:37

Listen music on a call - Amixer
 
hi all,
I wanted to know if anyone can answer this...
taking this scenario:
I'm in a call on the n900, and I want to show a music or any sound provided from the music player for me and the person that I'm calling.
Like we hear the same podcast, or show any track that I did.
Can I do this with the amixer command? Or with another command/program?

Thanks for the post :)

lauksas 2011-03-25 19:57

Re: Listen music on a call - Amixer
 
I was wondering if anyone could help me...

wumpwoast 2011-03-25 20:31

Re: Listen music on a call - Amixer
 
I like your idea, playing music through the phone to your caller while talking to them.

amixer is for changing volume levels and mixer settings in ALSA. I'm not sure it controls audio routing, particularly when all desktop audio is managed with PulseAudio. Without an Open Source phone application, I doubt you'll be able to pipe more than the basic MIC stream of audio into a phone call.

My best suggestion would be to use a mixer or mixer-cable with two inputs and a single output. You could pipe an external microphone and a music source into the N900's mono MIC port and get the same effect.

lauksas 2011-03-25 22:21

Re: Listen music on a call - Amixer
 
Yes, I agree with you about the difficulty to do it, but yet, I remember that I once downloaded an application called qRadio on extras-devel that had this bug:
When I was lessening radio with this application and someone called me I was unable to hear anything, and the other person that called could hear the FM radio sound music...
So at least there is on way to route the sound to the call...
If is possible to do it, it can be possible to route the sound and still hear the another person... right?
I'm a noob in linux so if I'm supposing anything ridiculous... just say it :D

AgentZ 2011-03-25 23:12

Re: Listen music on a call - Amixer
 
Years ago there was an Symbian that let you add sound efffects to calls with the ability to adjust volume to said effect. I loved that app, two of my favourite effects was a crazed Pitbull going off and an early 80's porn chick. When someone I didn't want to talk to called I would play the pitbull effect and tell them I had to go it worked every time. The porn one use your imagination:D

I can't do it but I know it could/should be able to be done.

lauksas 2011-03-25 23:14

Re: Listen music on a call - Amixer
 
Thanks AgentZ, perraps some angel hear us here and help us to find a way to do it :)

wumpwoast 2011-03-25 23:19

Re: Listen music on a call - Amixer
 
The whole purpose of PulseAudio is to manage multiple audio sources and sinks, so YES the idea is certainly possible (and the QRadio bug proves it!).

A good "switchboard" for PulseAudio would allow all kinds of unique functions, and in conjunction with a solid dialing API you could do automated calls with generated audio streams. There are other Linux audio frameworks, such as JACK (Open Source Low-Latency Audio), that have exactly this sort of functionality (qjackctl).

Until such a switchboard exists, I'd recommend looking at Maemo's PulseAudio config files in /etc/pulse and carefully experimenting.

Aranel 2011-03-25 23:26

Re: Listen music on a call - Amixer
 
I thought about that one some time ago but couldn't figure it out:

http://stackoverflow.com/questions/4...ing-pulseaudio

lauksas 2011-03-26 00:07

Re: Listen music on a call - Amixer
 
Nice wumpwoast, but as i sad before, i'm a noob in linux.. so... can't do the test :/ but anyway, I'll research for it...
thanks again

AgentZ 2011-03-26 00:28

Re: Listen music on a call - Amixer
 
Quote:

Originally Posted by Aranel (Post 975862)
I thought about that one some time ago but couldn't figure it out:

http://stackoverflow.com/questions/4...ing-pulseaudio

Great start Aranel, but what would truly like is to be able to have certan sound effects ie. dog barking, traffic noise piped into the background with me contrlolling the volume so I could still hear the caller.

lauksas 2011-03-26 00:40

Re: Listen music on a call - Amixer
 
Quote:

Originally Posted by AgentZ (Post 975884)
Great start Aranel, but what would truly like is to be able to have certan sound effects ie. dog barking, traffic noise piped into the background with me contrlolling the volume so I could still hear the caller.

AgentZ, i think if you can cut the sound from the mic, why don't you can still getting it? okay that is a new route... can we create a "virtual microphone"?


All times are GMT. The time now is 11:17.

vBulletin® Version 3.8.8