chiark / gitweb /
Fix the build fix. It turns out that Uint32 != uint32_t.
authorRichard Kettlewell <rjk@greenend.org.uk>
Thu, 19 Nov 2009 11:48:57 +0000 (11:48 +0000)
committerRichard Kettlewell <rjk@greenend.org.uk>
Thu, 19 Nov 2009 11:48:57 +0000 (11:48 +0000)
lib/uaudio-coreaudio.c

index 6ca3f708071b7743475d6e4a0eb3388c71417eee..73cc287d48f4a93309540b6a04f35257009862ff 100644 (file)
@@ -138,14 +138,14 @@ static void coreaudio_start(uaudio_callback *callback,
   if(status)
     coreaudio_fatal(status, "AudioHardwareGetProperty");
   D(("mSampleRate       %f", asbd.mSampleRate));
   if(status)
     coreaudio_fatal(status, "AudioHardwareGetProperty");
   D(("mSampleRate       %f", asbd.mSampleRate));
-  D(("mFormatID         %08"PRIx32, asbd.mFormatID));
-  D(("mFormatFlags      %08"PRIx32, asbd.mFormatFlags));
-  D(("mBytesPerPacket   %08"PRIx32, asbd.mBytesPerPacket));
-  D(("mFramesPerPacket  %08"PRIx32, asbd.mFramesPerPacket));
-  D(("mBytesPerFrame    %08"PRIx32, asbd.mBytesPerFrame));
-  D(("mChannelsPerFrame %08"PRIx32, asbd.mChannelsPerFrame));
-  D(("mBitsPerChannel   %08"PRIx32, asbd.mBitsPerChannel));
-  D(("mReserved         %08"PRIx32, asbd.mReserved));
+  D(("mFormatID         %08"PRIx32, (uint32_t)asbd.mFormatID));
+  D(("mFormatFlags      %08"PRIx32, (uint32_t)asbd.mFormatFlags));
+  D(("mBytesPerPacket   %08"PRIx32, (uint32_t)asbd.mBytesPerPacket));
+  D(("mFramesPerPacket  %08"PRIx32, (uint32_t)asbd.mFramesPerPacket));
+  D(("mBytesPerFrame    %08"PRIx32, (uint32_t)asbd.mBytesPerFrame));
+  D(("mChannelsPerFrame %08"PRIx32, (uint32_t)asbd.mChannelsPerFrame));
+  D(("mBitsPerChannel   %08"PRIx32, (uint32_t)asbd.mBitsPerChannel));
+  D(("mReserved         %08"PRIx32, (uint32_t)asbd.mReserved));
   /* Check that everything adds up */
   if(asbd.mFormatID != kAudioFormatLinearPCM)
     disorder_fatal(0, "audio device does not support kAudioFormatLinearPCM");
   /* Check that everything adds up */
   if(asbd.mFormatID != kAudioFormatLinearPCM)
     disorder_fatal(0, "audio device does not support kAudioFormatLinearPCM");