Example #1
0
 internal static void WaveOutProc(global::System.IntPtr hdrvr, int uMsg, int dwUser, ref global::WaveLib.WaveNative.WaveHdr wavhdr, int dwParam2)
 {
     if (uMsg == global::WaveLib.WaveNative.MM_WOM_DONE)
     {
         try
         {
             global::System.Runtime.InteropServices.GCHandle h = (global::System.Runtime.InteropServices.GCHandle)wavhdr.dwUser;
             (h.Target as global::WaveLib.WaveNative.WaveOutBuffer).OnCompleted();
         } catch { /* NOTHING */ }
     }
 }
Example #2
0
 [global::System.Runtime.InteropServices.DllImport(global::WaveLib.WaveNative.mmdll)] public static extern int waveInAddBuffer(global::System.IntPtr hwi, ref global::WaveLib.WaveNative.WaveHdr pwh, int cbwh);
Example #3
0
 [global::System.Runtime.InteropServices.DllImport(global::WaveLib.WaveNative.mmdll)] public static extern int waveInUnprepareHeader(global::System.IntPtr hWaveIn, ref global::WaveLib.WaveNative.WaveHdr lpWaveInHdr, int uSize);
Example #4
0
 [global::System.Runtime.InteropServices.DllImport(global::WaveLib.WaveNative.mmdll)] public static extern int waveOutWrite(global::System.IntPtr hWaveOut, ref global::WaveLib.WaveNative.WaveHdr lpWaveOutHdr, int uSize);