TiMidity++ 改造版 (Windows 専用)
Revisão | 1a24a43c8a21a436ab445c0cc8ae1e243c6fbc7a (tree) |
---|---|
Hora | 2017-12-16 06:20:35 |
Autor | Starg <starg@user...> |
Commiter | Starg |
Simplified flushing WASAPI.
@@ -786,10 +786,11 @@ int WASAPIACntl(int request, void* pArg) | ||
786 | 786 | return 0; |
787 | 787 | |
788 | 788 | case PM_REQ_FLUSH: |
789 | - while (!IsRenderBufferEmpty(&g_WASAPIContext.Buffer)) | |
789 | + while (g_WASAPIContext.IsStarted && !IsRenderBufferEmpty(&g_WASAPIContext.Buffer)) | |
790 | 790 | { |
791 | - WaitForSingleObject(g_WASAPIContext.hRenderThread, 10); | |
791 | + Sleep(50); | |
792 | 792 | } |
793 | + | |
793 | 794 | return 0; |
794 | 795 | |
795 | 796 | default: |