Skip to content

Commit

Permalink
Merge branch 'master' of github.com:WohlSoft/SDL-Mixer-X
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/codecs/native_midi/native_midi_macosx.c
  • Loading branch information
Wohlstand committed Oct 29, 2020
2 parents 553afa9 + e272937 commit cfd2e2f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/codecs/music_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@

#ifdef MUSIC_CMD

#ifdef __APPLE__
#define _DARWIN_C_SOURCE
#endif
#include <sys/types.h>
#include <sys/wait.h>
#include <stdio.h>
Expand Down
6 changes: 4 additions & 2 deletions src/codecs/native_midi/native_midi_macosx.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@

/* Mac OS X 10.6+, using Core MIDI. */

#include "SDL_stdinc.h"

#include <AudioUnit/AudioUnit.h>
#include <AudioToolbox/AudioToolbox.h>
#include <AvailabilityMacros.h>
Expand All @@ -50,8 +52,8 @@ static int latched_volume = MIX_MAX_VOLUME;
static OSStatus
GetSequenceLength(MusicSequence sequence, MusicTimeStamp *_sequenceLength)
{
// http://lists.apple.com/archives/Coreaudio-api/2003/Jul/msg00370.html
// figure out sequence length
/* http://lists.apple.com/archives/Coreaudio-api/2003/Jul/msg00370.html
* figure out sequence length */
UInt32 ntracks, i;
MusicTimeStamp sequenceLength = 0;
OSStatus err;
Expand Down

0 comments on commit cfd2e2f

Please sign in to comment.