mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-27 15:10:30 -04:00
fix build on macOS < 10.5
This commit is contained in:
parent
6513419d39
commit
7c72cb58f5
@ -60,13 +60,13 @@ static boolean I_MAC_InitMusic(int device)
|
|||||||
AudioComponentDescription d;
|
AudioComponentDescription d;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
NewAUGraph(&graph);
|
||||||
|
|
||||||
d.componentType = kAudioUnitType_MusicDevice;
|
d.componentType = kAudioUnitType_MusicDevice;
|
||||||
d.componentSubType = kAudioUnitSubType_DLSSynth;
|
d.componentSubType = kAudioUnitSubType_DLSSynth;
|
||||||
d.componentManufacturer = kAudioUnitManufacturer_Apple;
|
d.componentManufacturer = kAudioUnitManufacturer_Apple;
|
||||||
d.componentFlags = 0;
|
d.componentFlags = 0;
|
||||||
d.componentFlagsMask = 0;
|
d.componentFlagsMask = 0;
|
||||||
|
|
||||||
NewAUGraph(&graph);
|
|
||||||
#if MAC_OS_X_VERSION_MIN_REQUIRED < 1050
|
#if MAC_OS_X_VERSION_MIN_REQUIRED < 1050
|
||||||
AUGraphNewNode(graph, &d, 0, NULL, &synth);
|
AUGraphNewNode(graph, &d, 0, NULL, &synth);
|
||||||
#else
|
#else
|
||||||
@ -214,6 +214,13 @@ static void I_MAC_PlaySong(void *handle, boolean looping)
|
|||||||
for (i = 0; i < ntracks; i++)
|
for (i = 0; i < ntracks; i++)
|
||||||
{
|
{
|
||||||
MusicTrack track;
|
MusicTrack track;
|
||||||
|
#if MAC_OS_X_VERSION_MIN_REQUIRED < 1050
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
MusicTimeStamp loopDuration;
|
||||||
|
SInt32 numberOfLoops;
|
||||||
|
} MusicTrackLoopInfo;
|
||||||
|
#endif
|
||||||
MusicTrackLoopInfo info;
|
MusicTrackLoopInfo info;
|
||||||
|
|
||||||
if (MusicSequenceGetIndTrack(sequence, i, &track) != noErr)
|
if (MusicSequenceGetIndTrack(sequence, i, &track) != noErr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user