コード例 #1
0
        public void WaveCallback(IntPtr hdrvr, int uMsg, int dwUser, ref WinMM.WaveHdr wavhdr, int dwParam2)
        {
            if (uMsg == WinMM.MM_WOM_DONE)
            {
                FilledBuffers--;

                Voices.AudioEvent.Set();
            }
        }
コード例 #2
0
        public void WaveCallback(IntPtr hdrvr, int uMsg, int dwUser, ref WinMM.WaveHdr wavhdr, int dwParam2)
        {
            if (uMsg == WinMM.MM_WIM_DATA)
            {
                // use dwUser parameter of header to keep buffers in sync?
                // doesnt seem like buffers are getting out of sync at all

                AddedBuffers--;

                Voices.AudioEvent.Set();
            }
        }