示例#1
0
        public void AVAudioIONodeTests_AudioUnitTest()
        {
            Asserts.EnsureYosemite();

            AVAudioEngine eng  = new AVAudioEngine();
            AVAudioIONode node = eng.OutputNode;
            AUUnit        unit = node.AudioUnit;

            unit.GetElementCount(AudioUnitScopeType.Global);
            // Make sure this doens't crash.
        }
示例#2
0
        public void AVAudioIONodeTests_AudioUnitTest()
        {
            TestRuntime.AssertNotVirtualMachine();

            Asserts.EnsureYosemite();

            using (AVAudioEngine eng = new AVAudioEngine()) {
                using (AVAudioIONode node = eng.OutputNode) {
                    using (AUUnit unit = node.AudioUnit)
                        unit.GetElementCount(AudioUnitScopeType.Global);
                    using (AUUnit unit = node.AudioUnit)
                        unit.GetElementCount(AudioUnitScopeType.Global);
                    using (AUUnit unit = node.AudioUnit)
                        unit.GetElementCount(AudioUnitScopeType.Global);
                }
            }
            // Make sure this doens't crash.
        }