libsent/src/adin/adin_mic_linux.c

説明を見る。
00001 
00026 /*
00027  * Copyright (c) 1991-2008 Kawahara Lab., Kyoto University
00028  * Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology
00029  * Copyright (c) 2005-2008 Julius project team, Nagoya Institute of Technology
00030  * All rights reserved
00031  */
00032 
00033 #include <sent/stddefs.h>
00034 #include <sent/adin.h>
00035 
00044 boolean
00045 adin_mic_standby(int sfreq, void *dummy)
00046 {
00047 #if defined(HAS_ALSA)
00048   return(adin_alsa_standby(sfreq, dummy));
00049 #elif defined(HAS_OSS)
00050   return(adin_oss_standby(sfreq, dummy));
00051 #elif defined(HAS_ESD)
00052   return(adin_esd_standby(sfreq, dummy));
00053 #else  /* other than Linux */
00054   jlog("Error: neither of alsa/oss/esd device is available\n");
00055   return FALSE;
00056 #endif
00057 }
00058 
00064 boolean
00065 adin_mic_begin()
00066 {
00067 #if defined(HAS_ALSA)
00068   return(adin_alsa_begin());
00069 #elif defined(HAS_OSS)
00070   return(adin_oss_begin());
00071 #elif defined(HAS_ESD)
00072   return(adin_esd_begin());
00073 #else  /* other than Linux */
00074   jlog("Error: neither of alsa/oss/esd device is available\n");
00075   return FALSE;
00076 #endif
00077 }
00078 
00084 boolean
00085 adin_mic_end()
00086 {
00087 #if defined(HAS_ALSA)
00088   return(adin_alsa_end());
00089 #elif defined(HAS_OSS)
00090   return(adin_oss_end());
00091 #elif defined(HAS_ESD)
00092   return(adin_esd_end());
00093 #else  /* other than Linux */
00094   jlog("Error: neither of alsa/oss/esd device is available\n");
00095   return FALSE;
00096 #endif
00097 }
00098 
00111 int
00112 adin_mic_read(SP16 *buf, int sampnum)
00113 {
00114 #if defined(HAS_ALSA)
00115   return(adin_alsa_read(buf, sampnum));
00116 #elif defined(HAS_OSS)
00117   return(adin_oss_read(buf, sampnum));
00118 #elif defined(HAS_ESD)
00119   return(adin_esd_read(buf, sampnum));
00120 #else  /* other than Linux */
00121   jlog("Error: neither of alsa/oss/esd device is available\n");
00122   return -2;
00123 #endif
00124 }

Juliusに対してThu Jul 23 12:16:23 2009に生成されました。  doxygen 1.5.1