Active Topics

 



Notices


Reply
Thread Tools
Posts: 1,522 | Thanked: 390 times | Joined on Jul 2010 @ São Paulo, Brazil
#31
Originally Posted by rdwrig0ceo View Post
off topic but question is there a way to use camera buttons to control audio when phone is locked. Example playing music without headphones and screen goes black. 2 minutes go by and you quickly wanted to turn down the volume for whatever reason. Is this possible? Thanks in advance.
Some media players already let you control the volume while the screen is locked like what you describe.
 
Posts: 99 | Thanked: 325 times | Joined on Jul 2010
#32
I wanted to use my second N900 as a mpd streaming client in the kitchen.

Well, I faced the same issues as described before, looks like the native pulseaudio network protocol on maemo 5 and f.e. Fedora 16 is not compatible. Luckily there's another network sound protocol: esd.

Here's how it works:

On the n900:
Code:
- Install the pulseaudio-module-extra package.
- Edit /etc/pulse/system.pa and add these lines:

.ifexists module-esound-protocol-tcp.so
    load-module module-esound-protocol-tcp port=6000 auth-cookie-enabled=0 auth-anonymous=1 sink=1
.endif

- Restart pulseaudio/phone
On the mpd side, use this in the mpd.conf file:
Code:
audio_output {
    type "ao"
    driver "esd"
    options "host=devel-n900:6000"
    name "esd"
}
More help on mpd and pulseaudio can be found here: http://mpd.wikia.com/wiki/PulseAudio
 

The Following 5 Users Say Thank You to thomasjfox For This Useful Post:
Posts: 99 | Thanked: 325 times | Joined on Jul 2010
#33
Ok, here's an explanation of the protocol format incompatibility:
http://www.mail-archive.com/pulseaud.../msg09900.html

Proposed fix for the N900 -> remote server audio direction:
http://lists.freedesktop.org/archive...ne/010256.html

Let's see if we can "downgrade" the protocol version on the N900 in the /usr/lib/pulse-0.9.15/modules/module-native-protocol-tcp.so binary without recompilation
 

The Following 3 Users Say Thank You to thomasjfox For This Useful Post:
Posts: 99 | Thanked: 325 times | Joined on Jul 2010
#34
Ok, this dirty hack does the trick on the PA "client" side:

Code:
diff -u -r -p pulseaudio-0.9.22/configure.ac pulseaudio.faked/configure.ac
--- pulseaudio-0.9.22/configure.ac      2012-01-11 22:18:40.450280472 +0100
+++ pulseaudio.faked/configure.ac       2012-01-11 22:22:37.563083482 +0100
@@ -41,7 +41,7 @@ AC_SUBST(PA_MAJORMINORMICRO, pa_major.pa
 AC_SUBST(PACKAGE_URL, [http://pulseaudio.org/])
 
 AC_SUBST(PA_API_VERSION, 12)
-AC_SUBST(PA_PROTOCOL_VERSION, 16)
+AC_SUBST(PA_PROTOCOL_VERSION, 15)
 
 # The stable ABI for client applications, for the version info x:y:z
 # always will hold y=z
Just recompile pulseaudio and it will be able to use the N900 as speaker
 

The Following 7 Users Say Thank You to thomasjfox For This Useful Post:
Posts: 799 | Thanked: 2,601 times | Joined on Jan 2011 @ Germany
#35
Originally Posted by thomasjfox View Post
Code:
diff -u -r -p pulseaudio-0.9.22/configure.ac pulseaudio.faked/configure.ac
--- pulseaudio-0.9.22/configure.ac      2012-01-11 22:18:40.450280472 +0100
+++ pulseaudio.faked/configure.ac       2012-01-11 22:22:37.563083482 +0100
@@ -41,7 +41,7 @@ AC_SUBST(PA_MAJORMINORMICRO, pa_major.pa
 AC_SUBST(PACKAGE_URL, [http://pulseaudio.org/])
 
 AC_SUBST(PA_API_VERSION, 12)
-AC_SUBST(PA_PROTOCOL_VERSION, 16)
+AC_SUBST(PA_PROTOCOL_VERSION, 15)
 
 # The stable ABI for client applications, for the version info x:y:z
 # always will hold y=z
Just recompile pulseaudio and it will be able to use the N900 as speaker
That might also help to get a true pulseaudio 0.9.21 working in a dist-upgraded Easy Debian. I once tried something similar but must have changed the protocol version in the wrong place.
 

The Following User Says Thank You to sulu For This Useful Post:
Posts: 1 | Thanked: 0 times | Joined on Oct 2012
#36
Just recompile pulseaudio and it will be able to use the N900 as speaker.
How does one recompile pulseaudio?
 
Posts: 2,144 | Thanked: 8,406 times | Joined on May 2010
#37
Here is merge request for cssu pulseaudio: https://gitorious.org/community-ssu/...rge_requests/1
 

The Following 4 Users Say Thank You to pali For This Useful Post:
Reply

Tags
audio, audio routing, feature, fremantle, maemo, maemo 5, network transparency, problem, pulseaudio, sound

Thread Tools

 
Forum Jump


All times are GMT. The time now is 10:57.