mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 18:40:49 +00:00
(CoreAudio) Some OSX PPC build fixes
This commit is contained in:
parent
e68982596b
commit
166ee3785e
@ -37,7 +37,11 @@ typedef struct coreaudio
|
|||||||
pthread_mutex_t lock;
|
pthread_mutex_t lock;
|
||||||
pthread_cond_t cond;
|
pthread_cond_t cond;
|
||||||
|
|
||||||
|
#ifdef OSX_PPC
|
||||||
|
ComponentInstance dev;
|
||||||
|
#else
|
||||||
AudioComponentInstance dev;
|
AudioComponentInstance dev;
|
||||||
|
#endif
|
||||||
bool dev_alive;
|
bool dev_alive;
|
||||||
|
|
||||||
fifo_buffer_t *buffer;
|
fifo_buffer_t *buffer;
|
||||||
@ -173,7 +177,11 @@ static void *coreaudio_init(const char *device, unsigned rate, unsigned latency)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Create AudioComponent
|
// Create AudioComponent
|
||||||
|
#ifdef OSX_PPC
|
||||||
|
ComponentDescription desc = {0};
|
||||||
|
#else
|
||||||
AudioComponentDescription desc = {0};
|
AudioComponentDescription desc = {0};
|
||||||
|
#endif
|
||||||
desc.componentType = kAudioUnitType_Output;
|
desc.componentType = kAudioUnitType_Output;
|
||||||
#ifdef IOS
|
#ifdef IOS
|
||||||
desc.componentSubType = kAudioUnitSubType_RemoteIO;
|
desc.componentSubType = kAudioUnitSubType_RemoteIO;
|
||||||
@ -182,7 +190,11 @@ static void *coreaudio_init(const char *device, unsigned rate, unsigned latency)
|
|||||||
#endif
|
#endif
|
||||||
desc.componentManufacturer = kAudioUnitManufacturer_Apple;
|
desc.componentManufacturer = kAudioUnitManufacturer_Apple;
|
||||||
|
|
||||||
|
#ifdef OSX_PPC
|
||||||
|
Component comp = AudioComponentFindNext(NULL, &desc);
|
||||||
|
#else
|
||||||
AudioComponent comp = AudioComponentFindNext(NULL, &desc);
|
AudioComponent comp = AudioComponentFindNext(NULL, &desc);
|
||||||
|
#endif
|
||||||
if (comp == NULL)
|
if (comp == NULL)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user