Hi guys

I want to find a way to play music when calling.
I google the linux audio system.And find something following:

If you want to play PCM audio into a GSM call (i.e. make your remote partner
of a voice call hear your PCM audio, e.g. your mp3 or ogg files.



If you are inside a voice call (e.g. FSO/zhone), open amixer or load a state
file with alsactl and change the following mixer controls:



1.Mono Mixer Left

this enables audio routing from the Stereo DAC left channel to the Mono Out
(GSM Modem)

2.Mono Mixer Right Playback Switch

this enables audio routing from the Stereo DAC right channel to the Mono Out
(GSM Modem)

3.PCM Level

adjust the PCM Level up to the desired playback volume


But I try to change the mixer controls by the "amixer".It still doesn't
work.
Here is the command:
amixer -c 0 sset "Left DAC_L1 Mixer Mono" on
amixer -c 0 sset "Right DAC_R1 Mixer Mono" on

When I play the music by "pulseaudio" commands when calling,I get
the "alsa-sink.c:Error opening PCM device hw:0: Device or resource busy"
error.
Here is the command:
gst-launch-0.10 -e filesrc location= audio.pcm ! audio/x-raw-int, width=16,
depth=16, endianness=1234, channels=2, rate=44100, signed=true ! alsasink

When I end the call,I can play the music.
I don't know how to mix the sounds.
Who can give me some suggestions?

Thanks very much!

BR
Simon
_______________________________________________
MeeGo-kernel mailing list
[email protected]
http://lists.meego.com/listinfo/meego-kernel

Reply via email to