[Julius-cvs 193] CVS update: julius4/libsent/include/sent

Back to archive index

sumom****@users***** sumom****@users*****
2008年 7月 1日 (火) 13:29:46 JST


Index: julius4/libsent/include/sent/adin.h
diff -u julius4/libsent/include/sent/adin.h:1.2 julius4/libsent/include/sent/adin.h:1.3
--- julius4/libsent/include/sent/adin.h:1.2	Tue Dec 18 17:45:50 2007
+++ julius4/libsent/include/sent/adin.h	Tue Jul  1 13:29:46 2008
@@ -19,7 +19,7 @@
  * @author Akinobu LEE
  * @date   Thu Feb 10 17:22:36 2005
  *
- * $Revision: 1.2 $ 
+ * $Revision: 1.3 $ 
  */
 /*
  * Copyright (c) 1991-2007 Kawahara Lab., Kyoto University
@@ -34,6 +34,18 @@
 #include <sent/stddefs.h>
 #include <sent/speech.h>
 
+#if defined(HAVE_ALSA_ASOUNDLIB_H) || defined(HAVE_SYS_ASOUNDLIB_H)
+#define HAS_ALSA
+#endif
+#ifdef __linux__
+#if defined(HAVE_SYS_SOUNDCARD_H) || defined(HAVE_MACHINE_SOUNDCARD_H)
+#define HAS_OSS
+#endif
+#endif /* __linux__ */
+#ifdef HAVE_ESD_H
+#define HAS_ESD
+#endif
+
 /// To select speech input source
 enum {
   SP_RAWFILE,			///< Wavefile
@@ -44,6 +56,14 @@
   SP_STDIN			///< Standard input
 };
 
+/// Input device
+enum {
+  SP_INPUT_DEFAULT,
+  SP_INPUT_ALSA,
+  SP_INPUT_OSS,
+  SP_INPUT_ESD,
+};
+
 /// Default unit size of speech input segment in bytes
 #define DEFAULT_WSTEP 1000
 
@@ -122,6 +142,21 @@
 boolean adin_mic_begin();
 boolean adin_mic_end();
 int adin_mic_read(SP16 *buf, int sampnum);
+/* adin/adin_mic_linux_alsa.c */
+boolean adin_alsa_standby(int freq, void *arg);
+boolean adin_alsa_begin();
+boolean adin_alsa_end();
+int adin_alsa_read(SP16 *buf, int sampnum);
+/* adin/adin_mic_linux_oss.c */
+boolean adin_oss_standby(int freq, void *arg);
+boolean adin_oss_begin();
+boolean adin_oss_end();
+int adin_oss_read(SP16 *buf, int sampnum);
+/* adin/adin_esd.c */
+boolean adin_esd_standby(int freq, void *arg);
+boolean adin_esd_begin();
+boolean adin_esd_end();
+int adin_esd_read(SP16 *buf, int sampnum);
 /* adin/adin_netaudio.c  and adin/adin_na.c */
 boolean adin_netaudio_standby(int freq, void *arg);
 boolean adin_netaudio_begin();
Index: julius4/libsent/include/sent/config.h.in
diff -u julius4/libsent/include/sent/config.h.in:1.4 julius4/libsent/include/sent/config.h.in:1.5
--- julius4/libsent/include/sent/config.h.in:1.4	Sun Mar  2 02:10:19 2008
+++ julius4/libsent/include/sent/config.h.in	Tue Jul  1 13:29:46 2008
@@ -33,7 +33,7 @@
  * @author Akinobu LEE
  * @date   Thu Feb 10 17:48:32 2005
  *
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
  *
  */
 
@@ -124,10 +124,10 @@
 /* Define if use sin/cos table for MFCC calculation  */
 #undef MFCC_SINCOS_TABLE
 
-/* Define if <sys/soundcard.h> found in FreeBSD */
+/* Define if <sys/soundcard.h> found */
 #undef HAVE_SYS_SOUNDCARD_H
 
-/* Define if <machine/soundcard.h> found in FreeBSD */
+/* Define if <machine/soundcard.h> found */
 #undef HAVE_MACHINE_SOUNDCARD_H
 
 /* Define if <alsa/asoundlib.h> found */
@@ -135,3 +135,6 @@
 
 /* Define if <sys/asoundlib.h> exist and <alsa/asoundlib.h> not exist */
 #undef HAVE_SYS_ASOUNDLIB_H
+
+/* Define if <esd.h> exist  */
+#undef HAVE_ESD_H


Julius-cvs メーリングリストの案内
Back to archive index