private static IntPtr CreateBasedOn(AudioGenerator basedOn, string name)
 {
     IntPtr handle;
     UInt32 status = OpenNIImporter.xnCreateMockNodeBasedOn(basedOn.GetContext().InternalObject,
         basedOn.InternalObject, name, out handle);
     WrapperUtils.CheckStatus(status);
     return handle;
 }
Example #2
0
        private static IntPtr CreateBasedOn(AudioGenerator basedOn, string name)
        {
            IntPtr handle;
            UInt32 status = OpenNIImporter.xnCreateMockNodeBasedOn(basedOn.GetContext().InternalObject,
                                                                   basedOn.InternalObject, name, out handle);

            WrapperUtils.CheckStatus(status);
            return(handle);
        }
 public MockAudioGenerator(AudioGenerator basedOn)
     : this(basedOn, null)
 {
 }
 public MockAudioGenerator(AudioGenerator basedOn, string name)
     : this(CreateBasedOn(basedOn, name), false)
 {
 }
Example #5
0
 public MockAudioGenerator(AudioGenerator basedOn) :
     this(basedOn, null)
 {
 }
Example #6
0
 public MockAudioGenerator(AudioGenerator basedOn, string name) :
     this(CreateBasedOn(basedOn, name), false)
 {
 }