]> Repos - portaudio/commitdiff
coreaudio: fixed incorrect value type used with OSAtomicOr32 API (xrunFlags were...
authordmitrykos <dmitrykos@0f58301d-fd10-0410-b4af-bbb618454e57>
Sat, 25 Dec 2010 13:26:17 +0000 (13:26 +0000)
committerdmitrykos <dmitrykos@0f58301d-fd10-0410-b4af-bbb618454e57>
Sat, 25 Dec 2010 13:26:17 +0000 (13:26 +0000)
src/hostapi/coreaudio/pa_mac_core_internal.h
src/hostapi/coreaudio/pa_mac_core_utilities.c

index 9277321b3993ab5a0377f77a434cefaa56723ae9..3ebbf1bb014b48f4f72a1a6c3f40c3e81eb174d8 100644 (file)
@@ -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(). */
index 251bbe84c678138e3ab7a3942b9538f74a129c77..bbd169f7f3eb457fbc5b1da03b51d2aab72c4afa 100644 (file)
@@ -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 );
          }
       }