public void GetCurrentDevice_Test() { theUnit unit = GetAudioUnitForTest(); uint device = unit.GetCurrentDevice(AudioUnitScopeType.Global); Assert.IsTrue(device != 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. }
theUnit GetAudioUnitForTest() { AudioComponentDescription desc = new AudioComponentDescription(); desc.ComponentType = AudioComponentType.Output; desc.ComponentSubType = 1634230636; // 'ahal' desc.ComponentFlags = 0; desc.ComponentFlagsMask = 0; desc.ComponentManufacturer = AudioComponentManufacturerType.Apple; AudioComponent comp = AudioComponent.FindNextComponent(null, ref desc); theUnit unit = new theUnit(comp); return(unit); }