[AudioToolbox] Add Xcode 10 beta 5 support. (#4559)

This commit is contained in:
Manuel de la Pena 2018-08-03 02:29:15 +02:00 коммит произвёл Sebastien Pouliot
Родитель abcce7c2b9
Коммит ab64222d5b
6 изменённых файлов: 35 добавлений и 11 удалений

Просмотреть файл

@ -165,6 +165,7 @@ namespace AudioToolbox {
}
}
[Deprecated (PlatformName.iOS, 7, 0)]
public AudioSessionInputRouteKind PreviousInputRoute {
get {
using (var array = Extract (previous_route_key, AudioSession.AudioRouteKey_Inputs))
@ -172,6 +173,7 @@ namespace AudioToolbox {
}
}
[Deprecated (PlatformName.iOS, 7, 0)]
public AudioSessionOutputRouteKind [] PreviousOutputRoutes {
get {
using (var array = Extract (previous_route_key, AudioSession.AudioRouteKey_Outputs))
@ -179,6 +181,7 @@ namespace AudioToolbox {
}
}
[Deprecated (PlatformName.iOS, 7, 0)]
public AudioSessionInputRouteKind CurrentInputRoute {
get {
using (var array = Extract (current_route_key, AudioSession.AudioRouteKey_Inputs))
@ -186,6 +189,7 @@ namespace AudioToolbox {
}
}
[Deprecated (PlatformName.iOS, 7, 0)]
public AudioSessionOutputRouteKind [] CurrentOutputRoutes {
get {
using (var array = Extract (current_route_key, AudioSession.AudioRouteKey_Outputs))
@ -440,12 +444,14 @@ namespace AudioToolbox {
}
}
[Deprecated (PlatformName.iOS, 7, 0)]
static public AccessoryInfo[] InputSources {
get {
return ExtractAccessoryInfo (GetIntPtr (AudioSessionProperty.InputSources), InputSourceKey_ID, InputSourceKey_Description);
}
}
[Deprecated (PlatformName.iOS, 7, 0)]
static public AccessoryInfo[] OutputDestinations {
get {
return ExtractAccessoryInfo (GetIntPtr (AudioSessionProperty.OutputDestinations), OutputDestinationKey_ID, OutputDestinationKey_Description);
@ -490,6 +496,7 @@ namespace AudioToolbox {
*/
[Deprecated (PlatformName.iOS, 7, 0)]
static internal AudioSessionInputRouteKind GetInputRoute (NSArray arr)
{
if (arr == null || arr.Count == 0)
@ -520,6 +527,7 @@ namespace AudioToolbox {
}
}
[Deprecated (PlatformName.iOS, 7, 0)]
static internal AudioSessionOutputRouteKind [] GetOutputRoutes (NSArray arr)
{
if (arr == null || arr.Count == 0)
@ -563,12 +571,14 @@ namespace AudioToolbox {
return result;
}
[Deprecated (PlatformName.iOS, 7, 0)]
static public AudioSessionInputRouteKind InputRoute {
get {
return GetInputRoute ((NSArray) AudioRouteDescription [AudioRouteKey_Inputs]);
}
}
[Deprecated (PlatformName.iOS, 7, 0)]
static public AudioSessionOutputRouteKind [] OutputRoutes {
get {
return GetOutputRoutes ((NSArray) AudioRouteDescription [AudioRouteKey_Outputs]);

Просмотреть файл

@ -18,6 +18,7 @@ using CoreAnimation;
using CoreGraphics;
#if IOS || MONOMAC
using CoreAudioKit;
using CoreMidi;
#endif
using AudioToolbox;
using AVFoundation;
@ -64,6 +65,9 @@ namespace AudioUnit {
delegate bool AUHostTransportStateBlock (ref AUHostTransportStateFlags transportStateFlags, ref double currentSamplePosition, ref double cycleStartBeatPosition, ref double cycleEndBeatPosition);
delegate void AURenderObserver (AudioUnitRenderActionFlags actionFlags, ref AudioTimeStamp timestamp, uint frameCount, nint outputBusNumber);
delegate float AUImplementorValueFromStringCallback (AUParameter param, string str);
#if IOS || MONOMAC
delegate void AUMidiCIProfileChangedCallback (byte cable, byte channel, MidiCIProfile profile, bool enabled);
#endif
[iOS (9,0), Mac(10,11, onlyOn64 : true)]
[BaseType (typeof(NSObject))]
@ -253,6 +257,25 @@ namespace AudioUnit {
[Export ("MIDIOutputBufferSizeHint")]
nint MidiOutputBufferSizeHint { get; set; }
#if IOS || MONOMAC
[Mac (10,14, onlyOn64: true), iOS (12,0)]
[Export ("profileStateForCable:channel:")]
MidiCIProfileState GetProfileState (byte cable, byte channel);
[Mac (10,14, onlyOn64: true), iOS (12, 0)]
[NullAllowed, Export ("profileChangedBlock", ArgumentSemantic.Assign)]
AUMidiCIProfileChangedCallback ProfileChangedCallback { get; set; }
[Mac (10,14, onlyOn64: true), iOS (12,0)]
[Export ("disableProfile:cable:onChannel:error:")]
bool Disable (MidiCIProfile profile, byte cable, byte channel, [NullAllowed] out NSError outError);
[Mac (10,14, onlyOn64: true), iOS (12,0)]
[Export ("enableProfile:cable:onChannel:error:")]
bool Enable (MidiCIProfile profile, byte cable, byte channel, [NullAllowed] out NSError outError);
#endif
}
// kept separate from AUAudioUnit, quote:

Просмотреть файл

@ -1,5 +0,0 @@
!missing-selector! AUAudioUnit::disableProfile:cable:onChannel:error: not bound
!missing-selector! AUAudioUnit::enableProfile:cable:onChannel:error: not bound
!missing-selector! AUAudioUnit::profileChangedBlock not bound
!missing-selector! AUAudioUnit::profileStateForCable:channel: not bound
!missing-selector! AUAudioUnit::setProfileChangedBlock: not bound

Просмотреть файл

@ -1,5 +0,0 @@
!missing-selector! AUAudioUnit::disableProfile:cable:onChannel:error: not bound
!missing-selector! AUAudioUnit::enableProfile:cable:onChannel:error: not bound
!missing-selector! AUAudioUnit::profileChangedBlock not bound
!missing-selector! AUAudioUnit::profileStateForCable:channel: not bound
!missing-selector! AUAudioUnit::setProfileChangedBlock: not bound

Просмотреть файл

@ -0,0 +1,2 @@
# already obsoleted and pointed to use ReadPacketData
!unknown-pinvoke! AudioFileReadPackets bound

Просмотреть файл

@ -1 +0,0 @@
!unknown-pinvoke! AudioFileReadPackets bound