示例#1
0
 /// <summary>
 ///     Returns current resource usage details, such as available memory or CPU usage.
 /// </summary>
 /// <param name="performanceData">
 ///     On success, pointer to an <see cref="AudioSharp.XAudio2.PerformanceData" /> structure that is
 ///     returned.
 /// </param>
 /// <returns>HRESULT</returns>
 public override unsafe void GetPerformanceDataNative(out PerformanceData performanceData)
 {
     performanceData = default(PerformanceData); //initialize performanceData to fix compiler error
     fixed(void *p = &performanceData)
     {
         LocalInterop.Calli5(UnsafeBasePtr, p, ((void **)(*(void **)UnsafeBasePtr))[14]);
     }
 }
示例#2
0
 /// <summary>
 ///     Returns current resource usage details, such as available memory or CPU usage.
 /// </summary>
 /// <param name="performanceData">
 ///     On success, pointer to an <see cref="AudioSharp.XAudio2.PerformanceData" /> structure that is
 ///     returned.
 /// </param>
 /// <returns>HRESULT</returns>
 public abstract void GetPerformanceDataNative(out PerformanceData performanceData);