malgo icon indicating copy to clipboard operation
malgo copied to clipboard

Q: Why is iOS not supported?

Open fdraxler opened this issue 4 years ago • 2 comments

malgo does not list iOS as a supported platform, but macOS. As far as I understand, Miniaudio is based on Core Audio for both macOS and iOS. So I am surprised by this restriction. Is this a hard constraint, i.e. is there a technical burden that prohibits deployment, or is it just not tested?

Many thanks for an answer to help me out!

fdraxler avatar Jan 28 '21 16:01 fdraxler

"The macOS build should compile cleanly without the need to download any dependencies nor link to any libraries or frameworks. The iOS build needs to be compiled as Objective-C and will need to link the relevant frameworks but should compile cleanly out of the box with Xcode."

This is from miniaudio header file. I know there is support for .m files in Go cgo, so probably it just needs a wrapper with build tags just for iOS. I never used iOS and never compiled anything for it, the macOS build I can test in VM but never tried the iOS simulator etc.

gen2brain avatar Jan 28 '21 17:01 gen2brain

Many thanks for your quick and helpful answer! I will try and report back here, maybe with a PR or build instructions :)

fdraxler avatar Jan 31 '21 23:01 fdraxler