summaryrefslogtreecommitdiffstats
path: root/waftools
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2016-10-19 15:08:48 -0700
committerwm4 <wm4@nowhere>2016-11-01 16:25:40 +0100
commit3f5b41dfa30ca282fd99176bf879493dd72b3119 (patch)
treeb6684cc9b2406f3bc26e0b9e43950cc97fb030f9 /waftools
parent0dc1fe32696f9b53f21da598efe1aa1e3be2f24e (diff)
downloadmpv-3f5b41dfa30ca282fd99176bf879493dd72b3119.tar.bz2
mpv-3f5b41dfa30ca282fd99176bf879493dd72b3119.tar.xz
audio/out: add AudioUnit output driver for iOS
Diffstat (limited to 'waftools')
-rw-r--r--waftools/fragments/audiounit.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/waftools/fragments/audiounit.c b/waftools/fragments/audiounit.c
new file mode 100644
index 0000000000..e1d3266270
--- /dev/null
+++ b/waftools/fragments/audiounit.c
@@ -0,0 +1,15 @@
+#include <AudioToolbox/AudioToolbox.h>
+#include <AudioUnit/AudioUnit.h>
+#include <CoreAudio/CoreAudioTypes.h>
+
+int main(int argc, char **argv)
+{
+ AudioComponentDescription desc = (AudioComponentDescription) {
+ .componentType = kAudioUnitType_Output,
+ .componentSubType = kAudioUnitSubType_RemoteIO,
+ .componentManufacturer = kAudioUnitManufacturer_Apple,
+ };
+
+ AudioComponentFindNext(NULL, &desc);
+ return 0;
+}