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

アーカイブの一覧に戻る

sumom****@users***** sumom****@users*****
2013年 12月 4日 (水) 19:13:00 JST


Index: julius4/libsent/src/adin/adin_mic_darwin_coreaudio.c
diff -u julius4/libsent/src/adin/adin_mic_darwin_coreaudio.c:1.7 julius4/libsent/src/adin/adin_mic_darwin_coreaudio.c:1.8
--- julius4/libsent/src/adin/adin_mic_darwin_coreaudio.c:1.7	Wed Sep  5 17:18:24 2012
+++ julius4/libsent/src/adin/adin_mic_darwin_coreaudio.c	Wed Dec  4 19:13:00 2013
@@ -29,7 +29,7 @@
  * @author Masatomo Hashimoto
  * @date   Wed Oct 12 11:31:27 2005
  *
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
  * 
  */
 
@@ -44,7 +44,7 @@
  *
  */
 
-/* $Id: adin_mic_darwin_coreaudio.c,v 1.7 2012/09/05 08:18:24 sumomo Exp $ */
+/* $Id: adin_mic_darwin_coreaudio.c,v 1.8 2013/12/04 10:13:00 sumomo Exp $ */
 
 #include <CoreAudio/CoreAudio.h>
 #include <AudioUnit/AudioUnit.h>
@@ -665,6 +665,38 @@
 }
 
 /** 
+ * Function to pause audio input (wait for buffer flush)
+ * 
+ * @return TRUE on success, FALSE on failure.
+ */
+boolean
+adin_mic_pause()
+{
+  return TRUE;
+}
+
+/** 
+ * Function to terminate audio input (disgard buffer)
+ * 
+ * @return TRUE on success, FALSE on failure.
+ */
+boolean
+adin_mic_terminate()
+{
+  return TRUE;
+}
+/** 
+ * Function to resume the paused / terminated audio input
+ * 
+ * @return TRUE on success, FALSE on failure.
+ */
+boolean
+adin_mic_resume()
+{
+  return TRUE;
+}
+
+/** 
  * 
  * Function to return current input source device name
  * 
Index: julius4/libsent/src/adin/adin_mic_freebsd.c
diff -u julius4/libsent/src/adin/adin_mic_freebsd.c:1.9 julius4/libsent/src/adin/adin_mic_freebsd.c:1.10
--- julius4/libsent/src/adin/adin_mic_freebsd.c:1.9	Fri Jun 21 02:14:20 2013
+++ julius4/libsent/src/adin/adin_mic_freebsd.c	Wed Dec  4 19:13:00 2013
@@ -39,7 +39,7 @@
  * @author Akinobu LEE
  * @date   Sun Feb 13 16:18:26 2005
  *
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
  * 
  */
 /*
@@ -279,6 +279,38 @@
 }
 
 /** 
+ * Function to pause audio input (wait for buffer flush)
+ * 
+ * @return TRUE on success, FALSE on failure.
+ */
+boolean
+adin_mic_pause()
+{
+  return TRUE;
+}
+
+/** 
+ * Function to terminate audio input (disgard buffer)
+ * 
+ * @return TRUE on success, FALSE on failure.
+ */
+boolean
+adin_mic_terminate()
+{
+  return TRUE;
+}
+/** 
+ * Function to resume the paused / terminated audio input
+ * 
+ * @return TRUE on success, FALSE on failure.
+ */
+boolean
+adin_mic_resume()
+{
+  return TRUE;
+}
+
+/** 
  * 
  * Function to return current input source device name
  * 
Index: julius4/libsent/src/adin/adin_mic_linux.c
diff -u julius4/libsent/src/adin/adin_mic_linux.c:1.9 julius4/libsent/src/adin/adin_mic_linux.c:1.10
--- julius4/libsent/src/adin/adin_mic_linux.c:1.9	Fri Jun 21 02:14:20 2013
+++ julius4/libsent/src/adin/adin_mic_linux.c	Wed Dec  4 19:13:00 2013
@@ -23,7 +23,7 @@
  * @author Akinobu LEE
  * @date   Sun Feb 13 16:18:26 2005
  *
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
  * 
  */
 /*
@@ -137,6 +137,38 @@
 }
 
 /** 
+ * Function to pause audio input (wait for buffer flush)
+ * 
+ * @return TRUE on success, FALSE on failure.
+ */
+boolean
+adin_mic_pause()
+{
+  return TRUE;
+}
+
+/** 
+ * Function to terminate audio input (disgard buffer)
+ * 
+ * @return TRUE on success, FALSE on failure.
+ */
+boolean
+adin_mic_terminate()
+{
+  return TRUE;
+}
+/** 
+ * Function to resume the paused / terminated audio input
+ * 
+ * @return TRUE on success, FALSE on failure.
+ */
+boolean
+adin_mic_resume()
+{
+  return TRUE;
+}
+
+/** 
  * 
  * Function to return current input source device name
  * 
Index: julius4/libsent/src/adin/adin_mic_o2.c
diff -u julius4/libsent/src/adin/adin_mic_o2.c:1.7 julius4/libsent/src/adin/adin_mic_o2.c:1.8
--- julius4/libsent/src/adin/adin_mic_o2.c:1.7	Fri Jun 21 02:14:20 2013
+++ julius4/libsent/src/adin/adin_mic_o2.c	Wed Dec  4 19:13:00 2013
@@ -29,7 +29,7 @@
  * @author Akinobu LEE
  * @date   Sun Feb 13 18:42:22 2005
  *
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
  * 
  */
 /*
@@ -176,6 +176,38 @@
 }
 
 /** 
+ * Function to pause audio input (wait for buffer flush)
+ * 
+ * @return TRUE on success, FALSE on failure.
+ */
+boolean
+adin_mic_pause()
+{
+  return TRUE;
+}
+
+/** 
+ * Function to terminate audio input (disgard buffer)
+ * 
+ * @return TRUE on success, FALSE on failure.
+ */
+boolean
+adin_mic_terminate()
+{
+  return TRUE;
+}
+/** 
+ * Function to resume the paused / terminated audio input
+ * 
+ * @return TRUE on success, FALSE on failure.
+ */
+boolean
+adin_mic_resume()
+{
+  return TRUE;
+}
+
+/** 
  * 
  * Function to return current input source device name
  * 
Index: julius4/libsent/src/adin/adin_mic_sol2.c
diff -u julius4/libsent/src/adin/adin_mic_sol2.c:1.8 julius4/libsent/src/adin/adin_mic_sol2.c:1.9
--- julius4/libsent/src/adin/adin_mic_sol2.c:1.8	Fri Jun 21 02:14:20 2013
+++ julius4/libsent/src/adin/adin_mic_sol2.c	Wed Dec  4 19:13:00 2013
@@ -38,7 +38,7 @@
  * @author Akinobu LEE
  * @date   Sun Feb 13 19:06:46 2005
  *
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
  * 
  */
 /*
@@ -239,6 +239,38 @@
 }
 
 /** 
+ * Function to pause audio input (wait for buffer flush)
+ * 
+ * @return TRUE on success, FALSE on failure.
+ */
+boolean
+adin_mic_pause()
+{
+  return TRUE;
+}
+
+/** 
+ * Function to terminate audio input (disgard buffer)
+ * 
+ * @return TRUE on success, FALSE on failure.
+ */
+boolean
+adin_mic_terminate()
+{
+  return TRUE;
+}
+/** 
+ * Function to resume the paused / terminated audio input
+ * 
+ * @return TRUE on success, FALSE on failure.
+ */
+boolean
+adin_mic_resume()
+{
+  return TRUE;
+}
+
+/** 
  * 
  * Function to return current input source device name
  * 
Index: julius4/libsent/src/adin/adin_mic_sp.c
diff -u julius4/libsent/src/adin/adin_mic_sp.c:1.4 julius4/libsent/src/adin/adin_mic_sp.c:1.5
--- julius4/libsent/src/adin/adin_mic_sp.c:1.4	Fri Jul  3 02:05:20 2009
+++ julius4/libsent/src/adin/adin_mic_sp.c	Wed Dec  4 19:13:00 2013
@@ -35,7 +35,7 @@
  * @author Akinobu LEE
  * @date   Sun Feb 13 19:16:43 2005
  *
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
  * 
  */
 /* adin_mic_sp.c --- adin microphone library for spAudio
@@ -140,6 +140,38 @@
 }
 
 /** 
+ * Function to pause audio input (wait for buffer flush)
+ * 
+ * @return TRUE on success, FALSE on failure.
+ */
+boolean
+adin_mic_pause()
+{
+  return TRUE;
+}
+
+/** 
+ * Function to terminate audio input (disgard buffer)
+ * 
+ * @return TRUE on success, FALSE on failure.
+ */
+boolean
+adin_mic_terminate()
+{
+  return TRUE;
+}
+/** 
+ * Function to resume the paused / terminated audio input
+ * 
+ * @return TRUE on success, FALSE on failure.
+ */
+boolean
+adin_mic_resume()
+{
+  return TRUE;
+}
+
+/** 
  * 
  * Function to return current input source device name
  * 
Index: julius4/libsent/src/adin/adin_mic_sun4.c
diff -u julius4/libsent/src/adin/adin_mic_sun4.c:1.7 julius4/libsent/src/adin/adin_mic_sun4.c:1.8
--- julius4/libsent/src/adin/adin_mic_sun4.c:1.7	Fri Jun 21 02:14:20 2013
+++ julius4/libsent/src/adin/adin_mic_sun4.c	Wed Dec  4 19:13:00 2013
@@ -34,7 +34,7 @@
  * @author Akinobu LEE
  * @date   Sun Feb 13 18:56:13 2005
  *
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
  * 
  */
 /*
@@ -258,6 +258,38 @@
 }
 
 /** 
+ * Function to pause audio input (wait for buffer flush)
+ * 
+ * @return TRUE on success, FALSE on failure.
+ */
+boolean
+adin_mic_pause()
+{
+  return TRUE;
+}
+
+/** 
+ * Function to terminate audio input (disgard buffer)
+ * 
+ * @return TRUE on success, FALSE on failure.
+ */
+boolean
+adin_mic_terminate()
+{
+  return TRUE;
+}
+/** 
+ * Function to resume the paused / terminated audio input
+ * 
+ * @return TRUE on success, FALSE on failure.
+ */
+boolean
+adin_mic_resume()
+{
+  return TRUE;
+}
+
+/** 
  * 
  * Function to return current input source device name
  * 
Index: julius4/libsent/src/adin/adin_portaudio.c
diff -u julius4/libsent/src/adin/adin_portaudio.c:1.20 julius4/libsent/src/adin/adin_portaudio.c:1.21
--- julius4/libsent/src/adin/adin_portaudio.c:1.20	Fri Jun 21 02:14:20 2013
+++ julius4/libsent/src/adin/adin_portaudio.c	Wed Dec  4 19:13:00 2013
@@ -56,7 +56,7 @@
  * @author Akinobu LEE
  * @date   Mon Feb 14 12:03:48 2005
  *
- * $Revision: 1.20 $
+ * $Revision: 1.21 $
  * 
  */
 /*
@@ -662,6 +662,60 @@
 }
 
 /** 
+ * Function to pause audio input (wait for buffer flush)
+ * 
+ * @return TRUE on success, FALSE on failure.
+ */
+boolean
+adin_mic_pause()
+{
+  PaError err;
+
+  err = Pa_StopStream(stream);
+  if (err != paNoError) {
+    jlog("Error: adin_portaudio: failed to pause stream: %s\n", Pa_GetErrorText(err));
+    return FALSE;
+  }
+  return TRUE;
+}
+
+/** 
+ * Function to terminate audio input (disgard buffer)
+ * 
+ * @return TRUE on success, FALSE on failure.
+ */
+boolean
+adin_mic_terminate()
+{
+  PaError err;
+
+  err = Pa_AbortStream(stream);
+  if (err != paNoError) {
+    jlog("Error: adin_portaudio: failed to terminate stream: %s\n", Pa_GetErrorText(err));
+    return FALSE;
+  }
+  return TRUE;
+}
+
+/** 
+ * Function to resume the paused / terminated audio input
+ * 
+ * @return TRUE on success, FALSE on failure.
+ */
+boolean
+adin_mic_resume()
+{
+  PaError err;
+
+  err = Pa_StartStream(stream);
+  if (err != paNoError) {
+    jlog("Error: adin_portaudio: failed to resume stream: %s\n", Pa_GetErrorText(err));
+    return FALSE;
+  }
+  return TRUE;
+}
+
+/** 
  * 
  * Function to return current input source device name
  * 



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