Loading

Paste #pguiiod6f

  1. ***************
  2. *** 68,78 ****
  3.                           * risk compilation errors. The header AudioComponent.h
  4.                           * was introduced in 10.6 so use it to decide which
  5.                           * type definition to use. */
  6. - #ifdef __AUDIOCOMPONENT_H__
  7.                          AudioComponentDescription desc;
  8. - #else
  9. -                        ComponentDescription desc;
  10. - #endif
  11.                          AUGraphNodeInfo(graph, node, &desc, &unit);
  12.                          comp_type = desc.componentType;
  13.                  } else
  14. --- 68,74 ----
  15.                           * risk compilation errors. The header AudioComponent.h
  16.                           * was introduced in 10.6 so use it to decide which
  17.                           * type definition to use. */
  18.                          AudioComponentDescription desc;
  19.                          AUGraphNodeInfo(graph, node, &desc, &unit);
  20.                          comp_type = desc.componentType;
  21.                  } else
  22. ***************
  23. *** 159,165 ****
  24.  
  25.   #if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
  26.          if (MacOSVersionIsAtLeast(10, 5, 0)) {
  27. -                if (MusicSequenceFileLoad(_sequence, url, 0, 0) != noErr) {
  28.                          DEBUG(driver, 0, "cocoa_m: Failed to load MIDI file");
  29.                          CFRelease(url);
  30.  
  31. --- 155,161 ----
  32.  
  33.   #if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
  34.          if (MacOSVersionIsAtLeast(10, 5, 0)) {
  35. +                if (MusicSequenceFileLoad(_sequence, url, kMusicSequenceFile_AnyType, 0) != noErr) {
  36.                          DEBUG(driver, 0, "cocoa_m: Failed to load MIDI file");
  37.                          CFRelease(url);

Comments