|
@@ -19,24 +19,26 @@
|
|
|
#include "../os/macosx/macos.h"
|
|
|
#include "cocoa_m.h"
|
|
|
#include "../debug.h"
|
|
|
|
|
|
#define Rect OTTDRect
|
|
|
#define Point OTTDPoint
|
|
|
#include <CoreServices/CoreServices.h>
|
|
|
#include <AudioUnit/AudioUnit.h>
|
|
|
#include <AudioToolbox/AudioToolbox.h>
|
|
|
#undef Rect
|
|
|
#undef Point
|
|
|
|
|
|
#include "../safeguards.h"
|
|
|
|
|
|
static FMusicDriver_Cocoa iFMusicDriver_Cocoa;
|
|
|
|
|
|
|
|
|
static MusicPlayer _player = NULL;
|
|
|
static MusicSequence _sequence = NULL;
|
|
|
static MusicTimeStamp _seq_length = 0;
|
|
|
static bool _playing = false;
|
|
|
static byte _volume = 127;
|
|
|
|
|
|
|
|
|
/** Set the volume of the current sequence. */
|
|
|
static void DoSetVolume()
|