// Because someone made AudioComponentDescription a class internal AudioComponentDescription(AudioComponentDescriptionNative native) { this.ComponentType = native.ComponentType; this.ComponentSubType = native.ComponentSubType; this.ComponentManufacturer = native.ComponentManufacturer; this.ComponentFlags = native.ComponentFlags; this.ComponentFlagsMask = native.ComponentFlagsMask; }
public static AudioComponent FindNextComponent(AudioComponent cmp, ref AudioComponentDescription cd) { var handle = cmp == null ? IntPtr.Zero : cmp.Handle; var cdn = new AudioComponentDescriptionNative(cd); handle = AudioComponentFindNext(handle, ref cdn); cdn.CopyTo(cd); return((handle != IntPtr.Zero) ? new AudioComponent(handle) : null); }
static extern int /* OSStatus */ AudioComponentGetDescription(IntPtr component, out AudioComponentDescriptionNative desc);
static extern IntPtr AudioComponentFindNext(IntPtr inComponent, ref AudioComponentDescriptionNative inDesc);
static extern int AudioComponentGetDescription(IntPtr component, out AudioComponentDescriptionNative desc);
public static AudioComponent FindNextComponent(AudioComponent cmp, ref AudioComponentDescription cd) { var handle = cmp == null ? IntPtr.Zero : cmp.Handle; var cdn = new AudioComponentDescriptionNative (cd); handle = AudioComponentFindNext (handle, ref cdn); cdn.CopyTo (cd); return (handle != IntPtr.Zero) ? new AudioComponent (handle) : null; }
// Because someone made AudioComponentDescription a class internal AudioComponentDescription (AudioComponentDescriptionNative native) { this.ComponentType = native.ComponentType; this.ComponentSubType = native.ComponentSubType; this.ComponentManufacturer = native.ComponentManufacturer; this.ComponentFlags = native.ComponentFlags; this.ComponentFlagsMask = native.ComponentFlagsMask; }