<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - CoreAudio routines return OSStatus, not UInt32"
href="https://bugs.freedesktop.org/show_bug.cgi?id=88901">88901</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>CoreAudio routines return OSStatus, not UInt32
</td>
</tr>
<tr>
<th>Product</th>
<td>PulseAudio
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Mac OS X (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>modules
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rjvbertin@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>CC</th>
<td>lennart@poettering.net
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=113023" name="attach_113023" title="patch that corrects the err type issue">attachment 113023</a> <a href="attachment.cgi?id=113023&action=edit" title="patch that corrects the err type issue">[details]</a></span>
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.)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>