Loading

Paste #pdsbqvchh

  1. diff --git a/src/music/cocoa_m.cpp b/src/music/cocoa_m.cpp
  2. index a201984..301dbc2 100644
  3. --- a/src/music/cocoa_m.cpp
  4. +++ b/src/music/cocoa_m.cpp
  5. @@ -68,11 +68,7 @@ static void DoSetVolume()
  6.                          * risk compilation errors. The header AudioComponent.h
  7.                          * was introduced in 10.6 so use it to decide which
  8.                          * type definition to use. */
  9. -#ifdef __AUDIOCOMPONENT_H__
  10.                         AudioComponentDescription desc;
  11. -#else
  12. -                       ComponentDescription desc;
  13. -#endif
  14.                         AUGraphNodeInfo(graph, node, &desc, &unit);
  15.                         comp_type = desc.componentType;
  16.                 } else
  17. @@ -159,7 +155,7 @@ void MusicDriver_Cocoa::PlaySong(const char *filename)
  18.  
  19.  #if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
  20.         if (MacOSVersionIsAtLeast(10, 5, 0)) {
  21. -               if (MusicSequenceFileLoad(_sequence, url, 0, 0) != noErr) {
  22. +               if (MusicSequenceFileLoad(_sequence, url, kMusicSequenceFile_AnyType, 0) != noErr) {
  23.                         DEBUG(driver, 0, "cocoa_m: Failed to load MIDI file");
  24.                         CFRelease(url);
  25.                         return;

Comments