• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

TiMidity++ 改造版 (Windows 専用)


Commit MetaInfo

修订版1a24a43c8a21a436ab445c0cc8ae1e243c6fbc7a (tree)
时间2017-12-16 06:20:35
作者Starg <starg@user...>
CommiterStarg

Log Message

Simplified flushing WASAPI.

更改概述

差异

--- a/timidity/wasapi_a.c
+++ b/timidity/wasapi_a.c
@@ -786,10 +786,11 @@ int WASAPIACntl(int request, void* pArg)
786786 return 0;
787787
788788 case PM_REQ_FLUSH:
789- while (!IsRenderBufferEmpty(&g_WASAPIContext.Buffer))
789+ while (g_WASAPIContext.IsStarted && !IsRenderBufferEmpty(&g_WASAPIContext.Buffer))
790790 {
791- WaitForSingleObject(g_WASAPIContext.hRenderThread, 10);
791+ Sleep(50);
792792 }
793+
793794 return 0;
794795
795796 default: