Esempio n. 1
0
 internal AudioRequestInfo(IntPtr nativePtr, bool isCopy = false)
 {
     _isCopy = isCopy;
     _cPtr   = new System.Runtime.InteropServices.HandleRef(this, nativePtr);
     if (_isCopy)
     {
         _requestResult = NativeAudioSystem.SRIGetRequestResult(nativePtr);
         _flagsType     = NativeAudioSystem.SRIGetEnumFlagsType(nativePtr);
         _controlId     = NativeAudioSystem.SRIGetControlId(nativePtr);
         _audioObject   = NativeAudioSystem.SRIGetAudioObject(nativePtr);
     }
 }