diff --git a/README.md b/README.md index 1cb3554..cbe316b 100644 --- a/README.md +++ b/README.md @@ -21,5 +21,5 @@ Documentation on [GoDoc](https://godoc.org/github.com/gen2brain/malgo). Also che * Windows (WASAPI, DirectSound, WinMM) * Linux (PulseAudio, ALSA, JACK) * FreeBSD/NetBSD/OpenBSD (OSS/audio(4)/sndio) -* macOS (CoreAudio) +* macOS/iOS (CoreAudio) * Android (OpenSL|ES, AAudio) diff --git a/miniaudio.go b/miniaudio.go index a9c6a13..766b68b 100644 --- a/miniaudio.go +++ b/miniaudio.go @@ -11,6 +11,8 @@ package malgo #cgo netbsd LDFLAGS: -ldl -lpthread -lm #cgo freebsd LDFLAGS: -ldl -lpthread -lm #cgo android LDFLAGS: -lm +#cgo ios CFLAGS: -x objective-c +#cgo ios LDFLAGS: -framework CoreFoundation -framework AVFAudio -framework CoreAudio -framework AudioToolbox #cgo !noasm,!arm,!arm64 CFLAGS: -msse2 #cgo !noasm,arm,arm64 CFLAGS: -mfpu=neon -mfloat-abi=hard