mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-24 19:56:06 +00:00
(CoreAudio) Buildfix
This commit is contained in:
parent
943cb952a7
commit
e7595ae493
@ -128,7 +128,13 @@ static OSStatus audio_write_cb(void *userdata,
|
||||
return noErr;
|
||||
}
|
||||
|
||||
#ifndef TARGET_OS_IPHONE
|
||||
#if TARGET_OS_IPHONE
|
||||
static void coreaudio_interrupt_listener(void *data, UInt32 interrupt_state)
|
||||
{
|
||||
(void)data;
|
||||
g_interrupted = (interrupt_state == kAudioSessionBeginInterruption);
|
||||
}
|
||||
#else
|
||||
static void choose_output_device(coreaudio_t *dev, const char* device)
|
||||
{
|
||||
unsigned i;
|
||||
@ -175,12 +181,6 @@ static void choose_output_device(coreaudio_t *dev, const char* device)
|
||||
done:
|
||||
free(devices);
|
||||
}
|
||||
#else
|
||||
static void coreaudio_interrupt_listener(void *data, UInt32 interrupt_state)
|
||||
{
|
||||
(void)data;
|
||||
g_interrupted = (interrupt_state == kAudioSessionBeginInterruption);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void *coreaudio_init(const char *device,
|
||||
|
Loading…
Reference in New Issue
Block a user