public void DisposeMethodTest () { // Test case from bxc #5410 // Create instance of AudioUnit object AudioComponentDescription cd = new AudioComponentDescription () { ComponentType = AudioComponentType.Output, #if MONOMAC #if NET ComponentSubType = AudioUnitSubType.VoiceProcessingIO, #else ComponentSubType = (int)AudioUnitSubType.VoiceProcessingIO, #endif #else #if NET ComponentSubType = (AudioUnitSubType) AudioTypeOutput.Remote, #else ComponentSubType = 0x72696f63, // Remote_IO #endif #endif ComponentManufacturer = AudioComponentManufacturerType.Apple }; AudioComponent component = AudioComponent.FindComponent (ref cd); var audioUnit = component.CreateAudioUnit (); audioUnit.Dispose (); }
public void DisposeMethodTest() { // Test case from bxc #5410 // Create instance of AudioUnit object AudioComponentDescription cd = new AudioComponentDescription() { ComponentType = AudioComponentType.Output, ComponentSubType = 0x72696f63, // Remote_IO ComponentManufacturer = AudioComponentManufacturerType.Apple }; AudioComponent component = AudioComponent.FindComponent(ref cd); var audioUnit = component.CreateAudioUnit(); audioUnit.Dispose(); }