qemu-e2k/audio
Philippe Mathieu-Daudé 8b46d7e2dc audio: Rename coreaudio extension to use Objective-C compiler
The coreaudio library includes Objective-C declarations (using the
caret '^' symbol to declare block references [*]). When building
with a C compiler we get:

  [175/839] Compiling C object libcommon.fa.p/audio_coreaudio.c.o
    In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/CoreAudio.h:18,
                     from ../../audio/coreaudio.c:26:
    /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:162:2: error: expected identifier or '(' before '^' token
      162 | (^AudioObjectPropertyListenerBlock)(    UInt32                              inNumberAddresses,
          |  ^
    FAILED: libcommon.fa.p/audio_coreaudio.c.o

Rename the file to use the Objective-C default extension (.m) so
meson calls the correct compiler.

[*] https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/WorkingwithBlocks/WorkingwithBlocks.html

Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
2022-03-15 13:36:33 +01:00
..
alsaaudio.c audio: restore mixing-engine playback buffer size 2022-03-04 11:05:13 +01:00
audio_int.h audio: restore mixing-engine playback buffer size 2022-03-04 11:05:13 +01:00
audio_legacy.c sdlaudio: add -audiodev sdl,out.buffer-count option 2021-01-15 11:25:22 +01:00
audio_template.h audio: Log context for audio bug 2022-03-15 13:36:33 +01:00
audio_win_int.c dsoundaudio: fix log message 2021-01-15 11:25:22 +01:00
audio_win_int.h
audio.c audio: Log context for audio bug 2022-03-15 13:36:33 +01:00
audio.h qdev: Move softmmu properties to qdev-properties-system.h 2020-12-18 15:20:17 -05:00
coreaudio.m audio: Rename coreaudio extension to use Objective-C compiler 2022-03-15 13:36:33 +01:00
dbusaudio.c audio: add "dbus" audio backend 2021-12-21 10:50:22 +04:00
dsound_template.h dsoundaudio: replace GetForegroundWindow() 2021-01-15 11:25:22 +01:00
dsoundaudio.c dsoundaudio: reduce effective playback buffer size 2022-03-04 11:05:13 +01:00
jackaudio.c audio: restore mixing-engine playback buffer size 2022-03-04 11:05:13 +01:00
meson.build audio: Rename coreaudio extension to use Objective-C compiler 2022-03-15 13:36:33 +01:00
mixeng_template.h
mixeng.c
mixeng.h
noaudio.c audio: restore mixing-engine playback buffer size 2022-03-04 11:05:13 +01:00
ossaudio.c ossaudio: reduce effective playback buffer size 2022-03-04 11:05:13 +01:00
paaudio.c paaudio: fix samples vs. frames mix-up 2022-03-04 11:05:13 +01:00
rate_template.h
sdlaudio.c sdlaudio: fix samples vs. frames mix-up 2022-03-04 11:05:13 +01:00
spiceaudio.c modules: add audio module annotations 2021-07-09 18:20:27 +02:00
trace-events audio: add "dbus" audio backend 2021-12-21 10:50:22 +04:00
trace.h
wavaudio.c audio: restore mixing-engine playback buffer size 2022-03-04 11:05:13 +01:00
wavcapture.c