(CoreAudio) Some OSX PPC build fixes

This commit is contained in:
twinaphex 2014-05-22 22:11:14 +02:00
parent e68982596b
commit 166ee3785e

View File

@ -37,7 +37,11 @@ typedef struct coreaudio
pthread_mutex_t lock;
pthread_cond_t cond;
#ifdef OSX_PPC
ComponentInstance dev;
#else
AudioComponentInstance dev;
#endif
bool dev_alive;
fifo_buffer_t *buffer;
@ -173,7 +177,11 @@ static void *coreaudio_init(const char *device, unsigned rate, unsigned latency)
#endif
// Create AudioComponent
#ifdef OSX_PPC
ComponentDescription desc = {0};
#else
AudioComponentDescription desc = {0};
#endif
desc.componentType = kAudioUnitType_Output;
#ifdef IOS
desc.componentSubType = kAudioUnitSubType_RemoteIO;
@ -182,7 +190,11 @@ static void *coreaudio_init(const char *device, unsigned rate, unsigned latency)
#endif
desc.componentManufacturer = kAudioUnitManufacturer_Apple;
#ifdef OSX_PPC
Component comp = AudioComponentFindNext(NULL, &desc);
#else
AudioComponent comp = AudioComponentFindNext(NULL, &desc);
#endif
if (comp == NULL)
goto error;