[avfoundation] Fix AVAudioUnitComponentManager default .ctor crash (#3314) (#3351)

It looks like this should not have been bound since there's a singleton-like static property to use the type.
Keeping binary compatibility.

- Fixes github issue #3303: AVAudioUnitComponentManager default .ctor can crash on macOS 10.13.3
(https://github.com/xamarin/xamarin-macios/issues/3303)
This commit is contained in:
Vincent Dondain 2018-01-29 14:32:30 -05:00 коммит произвёл GitHub
Родитель 5d50f81cb8
Коммит 12a5e429e8
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 9 добавлений и 0 удалений

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

@ -92,6 +92,14 @@ namespace XamCore.AVFoundation {
}
}
partial class AVAudioUnitComponentManager {
[Obsolete ("Please use the static 'SharedInstance' property as this type is not meant to be created.")]
public AVAudioUnitComponentManager ()
{
}
}
#if !MONOMAC
partial class AVSampleBufferAudioRenderer
{

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

@ -12212,6 +12212,7 @@ namespace XamCore.AVFoundation {
[NoWatch, iOS (9,0), Mac (10,10)]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor] // for binary compatibility this is added in AVCompat.cs w/[Obsolete]
interface AVAudioUnitComponentManager {
[Export ("tagNames")]