Exemple #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;
 }
        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);
Exemple #5
0
 static extern int AudioComponentGetDescription(IntPtr component, out AudioComponentDescriptionNative desc);
Exemple #6
0
 static extern IntPtr AudioComponentFindNext(IntPtr inComponent, ref AudioComponentDescriptionNative inDesc);
Exemple #7
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;
 }
Exemple #8
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;
		}