Exemple #1
0
 // Token: 0x06002A93 RID: 10899 RVA: 0x000D7E50 File Offset: 0x000D6250
 private void Dispose(bool disposing)
 {
     if (this._pNative == IntPtr.Zero)
     {
         return;
     }
     this.__EventCleanup();
     NativeObjectCache.RemoveObject <AudioBeamFrameReference>(this._pNative);
     AudioBeamFrameReference.Windows_Kinect_AudioBeamFrameReference_ReleaseObject(ref this._pNative);
     this._pNative = IntPtr.Zero;
 }
Exemple #2
0
        // Token: 0x06002A98 RID: 10904 RVA: 0x000D7EC4 File Offset: 0x000D62C4
        public IList <AudioBeamFrame> AcquireBeamFrames()
        {
            if (this._pNative == IntPtr.Zero)
            {
                throw new ObjectDisposedException("AudioBeamFrameReference");
            }
            int num = AudioBeamFrameReference.Windows_Kinect_AudioBeamFrameReference_AcquireBeamFrames_Length(this._pNative);

            IntPtr[]         array  = new IntPtr[num];
            AudioBeamFrame[] array2 = new AudioBeamFrame[num];
            num = AudioBeamFrameReference.Windows_Kinect_AudioBeamFrameReference_AcquireBeamFrames(this._pNative, array, num);
            ExceptionHelper.CheckLastError();
            for (int i = 0; i < num; i++)
            {
                if (!(array[i] == IntPtr.Zero))
                {
                    AudioBeamFrame audioBeamFrame = NativeObjectCache.CreateOrGetObject <AudioBeamFrame>(array[i], (IntPtr n) => new AudioBeamFrame(n));
                    array2[i] = audioBeamFrame;
                }
            }
            return(array2);
        }
Exemple #3
0
 // Token: 0x06002A8E RID: 10894 RVA: 0x000D7DFC File Offset: 0x000D61FC
 internal AudioBeamFrameReference(IntPtr pNative)
 {
     this._pNative = pNative;
     AudioBeamFrameReference.Windows_Kinect_AudioBeamFrameReference_AddRefObject(ref this._pNative);
 }