[pulseaudio-tickets] [Bug 88901] New: CoreAudio routines return OSStatus, not UInt32

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Feb 1 10:13:24 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=88901

            Bug ID: 88901
           Summary: CoreAudio routines return OSStatus, not UInt32
           Product: PulseAudio
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: Mac OS X (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: modules
          Assignee: pulseaudio-bugs at lists.freedesktop.org
          Reporter: rjvbertin at gmail.com
        QA Contact: pulseaudio-bugs at lists.freedesktop.org
                CC: lennart at poettering.net

Created attachment 113023
  --> https://bugs.freedesktop.org/attachment.cgi?id=113023&action=edit
patch that corrects the err type issue

CoreAudio routines that return an error status do so with the OSStatus type,
which is not a UInt32: typical OS X errors are negative numbers.

Errors like I have been seeing :

W: [iMic USB audio system] module-coreaudio-device.c: Failed to get device
latency: 560947818
W: [iMic USB audio system] module-coreaudio-device.c: Failed to get buffer
frame size: 560947818
W: [iMic USB audio system] module-coreaudio-device.c: Failed to get safety
offset: 560947818
W: [iMic USB audio system] module-coreaudio-device.c: Failed to get streams:
560947818


are thus not informative about the true error that occurred.

The above errors occurred when I tried to change the device a playing
application was streaming to, using pavucontrol; this action did not work.
After rebuilding pulseaudio with the attached path, the feature now seems to
function and I can change the used device at will. (I cannot yet confirm though
that it works 100% of the time.)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20150201/3e1774fe/attachment-0001.html>


More information about the pulseaudio-bugs mailing list