if (status) {
CloseComponent (unit);
- GST_WARNING_OBJECT (osxbuf, "Failed to enable input: %lx", status);
+ GST_WARNING_OBJECT (osxbuf, "Failed to enable input: %lx",
+ (gulong) status);
return NULL;
}
if (status) {
CloseComponent (unit);
- GST_WARNING_OBJECT (osxbuf, "Failed to disable output: %lx", status);
+ GST_WARNING_OBJECT (osxbuf, "Failed to disable output: %lx",
+ (gulong) status);
return NULL;
}
}
if (status) {
CloseComponent (unit);
- GST_WARNING_OBJECT (osxbuf, "Failed to set device: %lx", status);
+ GST_WARNING_OBJECT (osxbuf, "Failed to set device: %lx", (gulong) status);
return NULL;
}
CloseComponent (osxbuf->audiounit);
osxbuf->audiounit = NULL;
GST_WARNING_OBJECT (osxbuf, "Unable to obtain device properties: %lx",
- status);
+ (gulong) status);
return FALSE;
}
kAudioUnitProperty_StreamFormat, scope, element, &format, propertySize);
if (status) {
- GST_WARNING_OBJECT (osxbuf, "Failed to set audio description: %lx", status);
+ GST_WARNING_OBJECT (osxbuf, "Failed to set audio description: %lx",
+ (gulong) status);
goto done;
}
scope, element, layout, layoutSize);
if (status) {
GST_WARNING_OBJECT (osxbuf, "Failed to set output channel layout: %lx",
- status);
+ (gulong) status);
goto done;
}
&frameSize, &propertySize);
if (status) {
- GST_WARNING_OBJECT (osxbuf, "Failed to get frame size: %lx", status);
+ GST_WARNING_OBJECT (osxbuf, "Failed to get frame size: %lx",
+ (gulong) status);
goto done;
}
osxbuf = GST_OSX_RING_BUFFER (buf);
GST_DEBUG ("osx ring buffer start ioproc: 0x%p device_id %lu",
- osxbuf->element->io_proc, osxbuf->device_id);
+ osxbuf->element->io_proc, (gulong) osxbuf->device_id);
if (!osxbuf->io_proc_active) {
callback_type = osxbuf->is_src ?
kAudioOutputUnitProperty_SetInputCallback :
GstOsxRingBuffer *osxbuf = GST_OSX_RING_BUFFER (buf);
GST_DEBUG ("osx ring buffer pause ioproc: 0x%p device_id %lu",
- osxbuf->element->io_proc, osxbuf->device_id);
+ osxbuf->element->io_proc, (gulong) osxbuf->device_id);
if (osxbuf->io_proc_active) {
/* CoreAudio isn't threadsafe enough to do this here; we must deactivate
* the render callback elsewhere. See:
osxbuf = GST_OSX_RING_BUFFER (buf);
GST_DEBUG ("osx ring buffer stop ioproc: 0x%p device_id %lu",
- osxbuf->element->io_proc, osxbuf->device_id);
+ osxbuf->element->io_proc, (gulong) osxbuf->device_id);
status = AudioOutputUnitStop (osxbuf->audiounit);
if (status)