Example #1
0
 // 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;
 }
Example #2
0
        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);
        }
Example #3
0
 static extern int /* OSStatus */ AudioComponentGetDescription(IntPtr component, out AudioComponentDescriptionNative desc);
Example #4
0
 static extern IntPtr AudioComponentFindNext(IntPtr inComponent, ref AudioComponentDescriptionNative inDesc);