[Julius-cvs 595] CVS update: julius4/libsent/src/adin

アーカイブの一覧に戻る

sumom****@users***** sumom****@users*****
2011年 2月 7日 (月) 13:56:14 JST


Index: julius4/libsent/src/adin/adin_portaudio.c
diff -u julius4/libsent/src/adin/adin_portaudio.c:1.13 julius4/libsent/src/adin/adin_portaudio.c:1.14
--- julius4/libsent/src/adin/adin_portaudio.c:1.13	Sat Feb  5 18:00:01 2011
+++ julius4/libsent/src/adin/adin_portaudio.c	Mon Feb  7 13:56:14 2011
@@ -56,7 +56,7 @@
  * @author Akinobu LEE
  * @date   Mon Feb 14 12:03:48 2005
  *
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
  * 
  */
 /*
@@ -469,24 +469,26 @@
   }
   
   // open the device
-  PaStreamParameters param;
-  memset( &param, 0, sizeof(param));
-  param.channelCount = 1;
-  param.device = devId;
-  param.sampleFormat = paInt16;
-  if (latency == 0) {
-    param.suggestedLatency = Pa_GetDeviceInfo(devId)->defaultLowInputLatency;
-    jlog("Stat: adin_portaudio: try to set default low latency from portaudio: %d msec\n", param.suggestedLatency * 1000.0);
-  } else {
-    param.suggestedLatency = latency / 1000.0;
-    jlog("Stat: adin_portaudio: try to set latency to %d msec\n", param.suggestedLatency * 1000.0);
-  }
-  err = Pa_OpenStream(&stream, &param, NULL, sfreq, 
-		      0, paNoFlag,
-		      Callback, NULL);
-  if (err != paNoError) {
-    jlog("Error: adin_portaudio: error in opening stream: %s\n", Pa_GetErrorText(err));
-    return(FALSE);
+  {
+    PaStreamParameters param;
+    memset( &param, 0, sizeof(param));
+    param.channelCount = 1;
+    param.device = devId;
+    param.sampleFormat = paInt16;
+    if (latency == 0) {
+      param.suggestedLatency = Pa_GetDeviceInfo(devId)->defaultLowInputLatency;
+      jlog("Stat: adin_portaudio: try to set default low latency from portaudio: %d msec\n", param.suggestedLatency * 1000.0);
+    } else {
+      param.suggestedLatency = latency / 1000.0;
+      jlog("Stat: adin_portaudio: try to set latency to %d msec\n", param.suggestedLatency * 1000.0);
+    }
+    err = Pa_OpenStream(&stream, &param, NULL, sfreq, 
+			0, paNoFlag,
+			Callback, NULL);
+    if (err != paNoError) {
+      jlog("Error: adin_portaudio: error in opening stream: %s\n", Pa_GetErrorText(err));
+      return(FALSE);
+    }
   }
   {
     const PaStreamInfo *stinfo;



Julius-cvs メーリングリストの案内
アーカイブの一覧に戻る