From 59f97a02b3db0ff9f0466953071c8edd95172e16 Mon Sep 17 00:00:00 2001 From: Alex Soto Date: Mon, 12 Jun 2017 14:48:37 -0500 Subject: [PATCH] [CoreAudioKit] Update to Xcode 9 Beta 1 (#2212) --- src/coreaudiokit.cs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/coreaudiokit.cs b/src/coreaudiokit.cs index 7f0a95e8b69..4c11fce972a 100644 --- a/src/coreaudiokit.cs +++ b/src/coreaudiokit.cs @@ -33,6 +33,33 @@ interface AUViewController : NSExtensionRequestHandling { [PostGet ("NibBundle")] IntPtr Constructor ([NullAllowed] string nibName, [NullAllowed] NSBundle bundle); } + + [iOS (11,0)][Mac (10,13, onlyOn64: true)] + [BaseType (typeof (NSObject))] + interface AUAudioUnitViewConfiguration : NSSecureCoding { + [Export ("initWithWidth:height:hostHasController:")] + IntPtr Constructor (nfloat width, nfloat height, bool hostHasController); + + [Export ("width")] + nfloat Width { get; } + + [Export ("height")] + nfloat Height { get; } + + [Export ("hostHasController")] + bool HostHasController { get; } + } + + [Category] + [iOS (11,0)][Mac (10,13, onlyOn64: true)] + [BaseType (typeof (AUAudioUnit))] + interface AUAudioUnitViewControllerExtensions { + [Export ("supportedViewConfigurations:")] + NSIndexSet GetSupportedViewConfigurations (AUAudioUnitViewConfiguration [] availableViewConfigurations); + + [Export ("selectViewConfiguration:")] + void SelectViewConfiguration (AUAudioUnitViewConfiguration viewConfiguration); + } #endif #if !MONOMAC