OSDN Git Service

TiMidity++-2.10.4
[timidity41/timidity41.git] / timidity / w32_a.c
old mode 100644 (file)
new mode 100755 (executable)
index eb24d56..404f7d0
@@ -463,14 +463,13 @@ static int acntl(int request, void *arg)
     switch(request)\r
     {\r
         case PM_REQ_GETQSIZ:\r
-            *(int *)arg = DATA_BLOCK_NUM * AUDIO_BUFFER_SIZE;\r
+            *(int *)arg = (DATA_BLOCK_NUM-1) * AUDIO_BUFFER_SIZE;\r
 \r
             if (NOT (dpm.encoding & PE_MONO))\r
                 *(int *)arg *= 2;\r
 \r
             if (dpm.encoding & PE_16BIT)\r
                 *(int *)arg *= 2;\r
-\r
             return 0;\r
 \r
         case PM_REQ_DISCARD:\r