Sam Lantinga před 2 roky
rodič
revize
51f90f308b
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4 4
      src/audio/coreaudio/SDL_coreaudio.m

+ 4 - 4
src/audio/coreaudio/SDL_coreaudio.m

@@ -732,10 +732,10 @@ static int AssignDeviceToAudioQueue(SDL_AudioDevice *device)
 
     //This is the quickest fix
     if (result != noErr) {
-            const char* msg = "AudioQueueSetProperty (kAudioQueueProperty_CurrentDevice)";
-            SDL_Log("COREAUDIO: Got error %d from '%s'!\n", (int)result, msg);
-            CFRelease(devuid);
-            return SDL_SetError("CoreAudio error (%s): %d", msg, (int)result);
+        const char* msg = "AudioQueueSetProperty (kAudioQueueProperty_CurrentDevice)";
+        SDL_Log("COREAUDIO: Got error %d from '%s'!\n", (int)result, msg);
+        CFRelease(devuid);
+        return SDL_SetError("CoreAudio error (%s): %d", msg, (int)result);
     }
 
     //Release once you've finished using CFStringRef