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 Windows Waveform Audio driver (no ADC support yet) 2009-10-10 01:18:24 +04:00
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 audio: fix saturation nonlinearity in clip_* functions 2020-03-16 10:18:07 +01:00
mixeng.c audio: Let audio_sample_to_uint64() use const samples argument 2020-05-26 08:29:30 +02:00
mixeng.h audio: proper support for float samples in mixeng 2020-02-06 14:35:57 +01:00
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 audio: use size_t where makes sense 2019-08-21 09:13:37 +02:00
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 trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
wavaudio.c audio: restore mixing-engine playback buffer size 2022-03-04 11:05:13 +01:00
wavcapture.c monitor: Use getter/setter functions for cur_mon 2020-10-09 07:08:19 +02:00