{
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 );
}
//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;
}