Bug 49961

Summary: Feature Request: "callback when connection is interrupted"
Product: PulseAudio Reporter: Paul Meng <mno2.csie>
Component: clientsAssignee: pulseaudio-bugs
Status: RESOLVED FIXED QA Contact: pulseaudio-bugs
Severity: enhancement    
Priority: medium CC: favonia, godfat, lennart
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Paul Meng 2012-05-15 09:01:17 UTC
My friends and I are working on a project to bind PulseAudio to Haskell (https://github.com/favonia/pulse), hoping to provide a Haskell interface without callback semantics. In order to complete this project, the support from the PulseAudio would be very helpful. That is to add a callback to notify the client when a connection is interrupted or canceled. With this callback, the task such as cleaning resource would be significantly easier for us to do. We don't have to keep a copy of context->operations in the wrapper code.

Please take this into consideration for the next API revision. We know this would cause API modification, but this would really help us out from the current clumsy design. Thank you.

Paul Meng
Comment 1 favonia 2013-01-13 22:20:09 UTC
Patch applied! The link to the discussion thread: http://lists.freedesktop.org/archives/pulseaudio-discuss/2013-January/015840.html

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.