From 166ee3785ebb96f391271518d8cb8cf4386ec2f6 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 22 May 2014 22:11:14 +0200 Subject: [PATCH] (CoreAudio) Some OSX PPC build fixes --- audio/coreaudio.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/audio/coreaudio.c b/audio/coreaudio.c index c6420c3d31..d0dd8a9f55 100644 --- a/audio/coreaudio.c +++ b/audio/coreaudio.c @@ -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;