Exemplo n.º 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;
 }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 static extern int /* OSStatus */ AudioComponentGetDescription(IntPtr component, out AudioComponentDescriptionNative desc);
Exemplo n.º 4
0
 static extern IntPtr AudioComponentFindNext(IntPtr inComponent, ref AudioComponentDescriptionNative inDesc);
Exemplo n.º 5
0
 static extern int AudioComponentGetDescription(IntPtr component, out AudioComponentDescriptionNative desc);
Exemplo n.º 6
0
 static extern IntPtr AudioComponentFindNext(IntPtr inComponent, ref AudioComponentDescriptionNative inDesc);
Exemplo n.º 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;
 }
Exemplo n.º 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;
		}