OSDN Git Service

timidity/portaudio_a.c: add dummy anctl()s
authorKeishi Suenaga <s_keishi@mutt.freemail.ne.jp>
Wed, 3 Jan 2007 09:02:58 +0000 (09:02 +0000)
committerKeishi Suenaga <s_keishi@mutt.freemail.ne.jp>
Wed, 3 Jan 2007 09:02:58 +0000 (09:02 +0000)
timidity/portaudio_a.c

index 81c1966..11dbc25 100644 (file)
@@ -603,22 +603,22 @@ static int acntl(int request, void *arg)
 {
     switch(request)
     {
-/*     // NOT WORK
+/// NOT WORK
       case PM_REQ_GETQSIZ:
-                *(int *)arg = bytesPerInBuffer*2;
+//              *(int *)arg = bytesPerInBuffer*2;
        return 0;
                //break;
       case PM_REQ_GETFILLABLE:
-                *(int *)arg = bytesPerInBuffer*2-pa_data.samplesToGo;
+//              *(int *)arg = bytesPerInBuffer*2-pa_data.samplesToGo;
        return 0;
                //break;
       case PM_REQ_GETFILLED:
-                *(int *)arg = pa_data.samplesToGo;
+//              *(int *)arg = pa_data.samplesToGo;
        return 0;
                //break;
-*/
-       case PM_REQ_DISCARD:
-      case PM_REQ_FLUSH:
+
+       case PM_REQ_DISCARD:
+    case PM_REQ_FLUSH:
 //     pa_data.samplesToGo=0;
 //     pa_data.bufpoint=pa_data.bufepoint;
 //     err = Pa_AbortStream( stream );
@@ -645,11 +645,15 @@ static int acntl(int request, void *arg)
        }
        //break;
  */
-      case PM_REQ_PLAY_START: //* Called just before playing *
-      case PM_REQ_PLAY_END: //* Called just after playing *
+    case PM_REQ_RATE: {
+          break;
+       }
+       
+    case PM_REQ_PLAY_START: //* Called just before playing *
+    case PM_REQ_PLAY_END: //* Called just after playing *
         return 0;
       
-      default:
+       default:
        return -1;
 
     }