mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-03-01 07:00:44 +00:00
Improvements on patches from feedback.
This commit is contained in:
parent
d8113d497b
commit
a5bdbd57e2
2 changed files with 6 additions and 9 deletions
|
@ -73,8 +73,8 @@ OSStatus fluid_core_audio_callback(void *data,
|
||||||
|
|
||||||
#define OK(x) (x == noErr)
|
#define OK(x) (x == noErr)
|
||||||
|
|
||||||
#if MAC_OS_X_VERSION_MIN_REQUIRED < 1200
|
#if MAC_OS_X_VERSION < 1200
|
||||||
#define kAudioObjectPropertyElementMain kAudioObjectPropertyElementMaster
|
#define kAudioObjectPropertyElementMain (kAudioObjectPropertyElementMaster)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -178,12 +178,9 @@ new_fluid_core_audio_driver2(fluid_settings_t *settings, fluid_audio_func_t func
|
||||||
int i;
|
int i;
|
||||||
#if MAC_OS_X_VERSION_MIN_REQUIRED < 1060
|
#if MAC_OS_X_VERSION_MIN_REQUIRED < 1060
|
||||||
ComponentDescription desc;
|
ComponentDescription desc;
|
||||||
#else
|
|
||||||
AudioComponentDescription desc;
|
|
||||||
#endif
|
|
||||||
#if MAC_OS_X_VERSION_MIN_REQUIRED < 1060
|
|
||||||
Component comp;
|
Component comp;
|
||||||
#else
|
#else
|
||||||
|
AudioComponentDescription desc;
|
||||||
AudioComponent comp;
|
AudioComponent comp;
|
||||||
#endif
|
#endif
|
||||||
AURenderCallbackStruct render;
|
AURenderCallbackStruct render;
|
||||||
|
|
|
@ -63,9 +63,9 @@ typedef struct
|
||||||
int autoconn_inputs;
|
int autoconn_inputs;
|
||||||
} fluid_coremidi_driver_t;
|
} fluid_coremidi_driver_t;
|
||||||
|
|
||||||
static MIDIClientRef invalid_client = (MIDIClientRef)-1;
|
static const MIDIClientRef invalid_client = (MIDIClientRef)-1;
|
||||||
static MIDIEndpointRef invalid_endpoint = (MIDIEndpointRef)-1;
|
static const MIDIEndpointRef invalid_endpoint = (MIDIEndpointRef)-1;
|
||||||
static MIDIPortRef invalid_port = (MIDIPortRef)-1;
|
static const MIDIPortRef invalid_port = (MIDIPortRef)-1;
|
||||||
|
|
||||||
void fluid_coremidi_callback(const MIDIPacketList *list, void *p, void *src);
|
void fluid_coremidi_callback(const MIDIPacketList *list, void *p, void *src);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue