Active Topics

 


Reply
Thread Tools
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, 258 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:
Posts: 2,154 | Thanked: 8,464 times | Joined on May 2010
#2
Here is official documentation for libplayback: http://maemo.org/api_refs/5.0/5.0-final/libplayback-1/
 

The Following 3 Users Say Thank You to pali For This Useful Post:
Posts: 99 | Thanked: 325 times | Joined on Jul 2010
#3
I've updated the example code to include the "state hint" callback.

This callback is triggered f.e. after a call finished so one can resume audio.
 

The Following 2 Users Say Thank You to thomasjfox For This Useful Post:
bingomion's Avatar
Posts: 528 | Thanked: 345 times | Joined on Aug 2010 @ MLB.AU
#4
Many thanks.. I wasn't sure if this was what i was looking for, but i know it is now.
Thankyou
 

The Following User Says Thank You to bingomion For This Useful Post:
Reply

Tags
libplayback, maemo 5


 
Forum Jump


All times are GMT. The time now is 01:42.