diff --git a/src/hostapi/coreaudio/pa_mac_core_internal.h b/src/hostapi/coreaudio/pa_mac_core_internal.h index 9277321..3ebbf1b 100644 --- a/src/hostapi/coreaudio/pa_mac_core_internal.h +++ b/src/hostapi/coreaudio/pa_mac_core_internal.h @@ -141,7 +141,7 @@ typedef struct PaMacCoreStream AudioBufferList inputAudioBufferList; AudioTimeStamp startTime; /* FIXME: instead of volatile, these should be properly memory barriered */ - volatile PaStreamCallbackFlags xrunFlags; + volatile uint32_t xrunFlags; /*PaStreamCallbackFlags*/ volatile enum { STOPPED = 0, /* playback is completely stopped, and the user has called StopStream(). */ diff --git a/src/hostapi/coreaudio/pa_mac_core_utilities.c b/src/hostapi/coreaudio/pa_mac_core_utilities.c index 251bbe8..bbd169f 100644 --- a/src/hostapi/coreaudio/pa_mac_core_utilities.c +++ b/src/hostapi/coreaudio/pa_mac_core_utilities.c @@ -652,10 +652,10 @@ OSStatus xrunCallback( if( isInput ) { if( stream->inputDevice == inDevice ) - OSAtomicOr32( paInputOverflow, (uint32_t *)&(stream->xrunFlags) ); + OSAtomicOr32( paInputOverflow, &stream->xrunFlags ); } else { if( stream->outputDevice == inDevice ) - OSAtomicOr32( paOutputUnderflow, (uint32_t *)&(stream->xrunFlags) ); + OSAtomicOr32( paOutputUnderflow, &stream->xrunFlags ); } }