Esempio n. 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));
        }
Esempio n. 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));
		}