Пример #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;
 }
Пример #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);
        }
Пример #3
0
 static extern int /* OSStatus */ AudioComponentGetDescription(IntPtr component, out AudioComponentDescriptionNative desc);
Пример #4
0
 static extern IntPtr AudioComponentFindNext(IntPtr inComponent, ref AudioComponentDescriptionNative inDesc);
Пример #5
0
 static extern int AudioComponentGetDescription(IntPtr component, out AudioComponentDescriptionNative desc);
Пример #6
0
 static extern IntPtr AudioComponentFindNext(IntPtr inComponent, ref AudioComponentDescriptionNative inDesc);
Пример #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;
 }
Пример #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;
		}