mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 06:51:54 +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)
|
||||
|
||||
#if MAC_OS_X_VERSION_MIN_REQUIRED < 1200
|
||||
#define kAudioObjectPropertyElementMain kAudioObjectPropertyElementMaster
|
||||
#if MAC_OS_X_VERSION < 1200
|
||||
#define kAudioObjectPropertyElementMain (kAudioObjectPropertyElementMaster)
|
||||
#endif
|
||||
|
||||
int
|
||||
|
@ -178,12 +178,9 @@ new_fluid_core_audio_driver2(fluid_settings_t *settings, fluid_audio_func_t func
|
|||
int i;
|
||||
#if MAC_OS_X_VERSION_MIN_REQUIRED < 1060
|
||||
ComponentDescription desc;
|
||||
#else
|
||||
AudioComponentDescription desc;
|
||||
#endif
|
||||
#if MAC_OS_X_VERSION_MIN_REQUIRED < 1060
|
||||
Component comp;
|
||||
#else
|
||||
AudioComponentDescription desc;
|
||||
AudioComponent comp;
|
||||
#endif
|
||||
AURenderCallbackStruct render;
|
||||
|
|
|
@ -63,9 +63,9 @@ typedef struct
|
|||
int autoconn_inputs;
|
||||
} fluid_coremidi_driver_t;
|
||||
|
||||
static MIDIClientRef invalid_client = (MIDIClientRef)-1;
|
||||
static MIDIEndpointRef invalid_endpoint = (MIDIEndpointRef)-1;
|
||||
static MIDIPortRef invalid_port = (MIDIPortRef)-1;
|
||||
static const MIDIClientRef invalid_client = (MIDIClientRef)-1;
|
||||
static const MIDIEndpointRef invalid_endpoint = (MIDIEndpointRef)-1;
|
||||
static const MIDIPortRef invalid_port = (MIDIPortRef)-1;
|
||||
|
||||
void fluid_coremidi_callback(const MIDIPacketList *list, void *p, void *src);
|
||||
|
||||
|
|
Loading…
Reference in a new issue