native_midi/native_midi_mac.c
changeset 718 fb0562cc1559
parent 625 1d489d8ec2e0
child 779 a2b494c054d5
equal deleted inserted replaced
717:27eb690edafc 718:fb0562cc1559
    18      misrepresented as being the original software.
    18      misrepresented as being the original software.
    19   3. This notice may not be removed or altered from any source distribution.
    19   3. This notice may not be removed or altered from any source distribution.
    20 */
    20 */
    21 #include "SDL_config.h"
    21 #include "SDL_config.h"
    22 #include "SDL_endian.h"
    22 #include "SDL_endian.h"
       
    23 #include "../mixer.h"
    23 
    24 
    24 #if __MACOS__ /*|| __MACOSX__ */
    25 #if __MACOS__ /*|| __MACOSX__ */
    25 
    26 
    26 #include "native_midi.h"
    27 #include "native_midi.h"
    27 #include "native_midi_common.h"
    28 #include "native_midi_common.h"
   185 
   186 
   186     /* FIXME: is this code even used anymore? */
   187     /* FIXME: is this code even used anymore? */
   187     assert (loops == 0);
   188     assert (loops == 0);
   188 
   189 
   189     SDL_PauseAudio(1);
   190     SDL_PauseAudio(1);
   190     SDL_UnlockAudio();
   191     Mix_UnlockAudio();
   191 
   192 
   192     /* First, stop the currently playing music */
   193     /* First, stop the currently playing music */
   193     native_midi_stop();
   194     native_midi_stop();
   194 
   195 
   195     /* Set up the queue flags */
   196     /* Set up the queue flags */
   235         strncpy (gErrorBuffer, "MIDI error during TuneQueue", ERROR_BUF_SIZE);
   236         strncpy (gErrorBuffer, "MIDI error during TuneQueue", ERROR_BUF_SIZE);
   236         goto done;
   237         goto done;
   237     }
   238     }
   238 
   239 
   239 done:
   240 done:
   240     SDL_LockAudio();
   241     Mix_LockAudio();
   241     SDL_PauseAudio(0);
   242     SDL_PauseAudio(0);
   242 }
   243 }
   243 
   244 
   244 void native_midi_stop()
   245 void native_midi_stop()
   245 {
   246 {