예제 #1
0
        public void GetStatistics(out hdcd_decoder_statistics stats)
        {
#if !MONO
            IntPtr _statsPtr = hdcd_decoder_get_statistics(_decoder);
#else
            IntPtr _statsPtr = IntPtr.Zero;
#endif
            if (_statsPtr == IntPtr.Zero)
            {
                throw new Exception("HDCD statistics error.");
            }
            stats = (hdcd_decoder_statistics)Marshal.PtrToStructure(_statsPtr, typeof(hdcd_decoder_statistics));
        }
예제 #2
0
		public void GetStatistics(out hdcd_decoder_statistics stats)
		{
#if !MONO
			IntPtr _statsPtr = hdcd_decoder_get_statistics(_decoder);
#else
			IntPtr _statsPtr = IntPtr.Zero;
#endif
			if (_statsPtr == IntPtr.Zero)
				throw new Exception("HDCD statistics error.");
			stats = (hdcd_decoder_statistics) Marshal.PtrToStructure(_statsPtr, typeof(hdcd_decoder_statistics));
		}