View Single Post
Posts: 99 | Thanked: 325 times | Joined on Jul 2010
#1
Hello together,

here's the long awaited libplayback "documentation"

libplayback offers the following features:
- Audio output when silent mode is active
- Notifications that we should stop playing (f.e. incoming call)
- Override of privacy mode / silent mode for our own audio stream if the playback class is set to "PB_CLASS_CALL".
- Simultaneous mute/unmute of all mics (seen on dbus: TV out, headset, headmike, microphone)

After hours and hours of hacking around libplayback,
I finally managed to get it working properly without any hacks
or modifications to /etc/pulse/xpolicy.conf.

This is the related bug:
https://bugs.maemo.org/show_bug.cgi?id=6694

Would be nice if someone could add it to the wiki here (without the .txt extension):
http://wiki.maemo.org/Documentation/...in#libplayback

I hope I documented all important features. It was pretty tricky
to find out what "req_mute" exactly does or how the privacy mode override
affects the audio stream only for certain audio classes...

Cheers,
Thomas
Attached Files
File Type: txt libplayback_example.c.txt (10.0 KB, 241 views)

Last edited by thomasjfox; 2012-08-18 at 07:09. Reason: Updated example code with state hint callback
 

The Following 14 Users Say Thank You to thomasjfox For This Useful Post: