printf("[PulseAudio] ma_device_read__pulse: No data available. Waiting.\n");
#endif
/* Sleep for a bit if nothing was dispatched. */
/* Sleep for a bit if nothing was dispatched. */
if (error == 0) {
if (error == 0) {
ma_sleep(1);
ma_sleep(1);
}
}
#if defined(MA_DEBUG_OUTPUT)
printf("[PulseAudio] ma_device_read__pulse: No data available. Waiting. mappedBufferFramesCapacityCapture=%d, mappedBufferFramesRemainingCapture%d\n", pDevice->pulse.mappedBufferFramesCapacityCapture, pDevice->pulse.mappedBufferFramesRemainingCapture);
#endif
continue;
continue;
}
} else {
} else {
return ma_post_error(pDevice, MA_LOG_LEVEL_ERROR, "[PulseAudio] Failed to query the stream's readable size.", MA_ERROR);