• Main Page
  • Related Pages
  • Data Structures
  • Files
  • File List
  • Globals

src/libsphinxad/audio_utils_sunos.h

Go to the documentation of this file.
00001 /* ====================================================================
00002  * Copyright (c) 1999-2001 Carnegie Mellon University.  All rights
00003  * reserved.
00004  *
00005  * Redistribution and use in source and binary forms, with or without
00006  * modification, are permitted provided that the following conditions
00007  * are met:
00008  *
00009  * 1. Redistributions of source code must retain the above copyright
00010  *    notice, this list of conditions and the following disclaimer. 
00011  *
00012  * 2. Redistributions in binary form must reproduce the above copyright
00013  *    notice, this list of conditions and the following disclaimer in
00014  *    the documentation and/or other materials provided with the
00015  *    distribution.
00016  *
00017  * This work was supported in part by funding from the Defense Advanced 
00018  * Research Projects Agency and the National Science Foundation of the 
00019  * United States of America, and the CMU Sphinx Speech Consortium.
00020  *
00021  * THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS'' AND 
00022  * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 
00023  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
00024  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY
00025  * NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00026  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
00027  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
00028  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 
00029  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
00030  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
00031  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00032  *
00033  * ====================================================================
00034  *
00035  */
00036 /*
00037  * audio_utils.h -- From Bob Brennan for Sun audio utilities.
00038  * 
00039  * HISTORY
00040  *
00041  * 07-Dec-01    K A Lenzo (lenzo@cs.cmu.edu) at Carnegie Mellon University
00042  *              ifdefed around the sun4/solaris header location diff.
00043  * 
00044  * 15-Jul-98    M K Ravishankar (rkm@cs.cmu.edu) at Carnegie Mellon University
00045  *              sys/audioio.h and sys/filio.h included following Alex 
00046  *              Rudnicky's remarks.
00047  * 
00048  * 02-Aug-95    M K Ravishankar (rkm@cs.cmu.edu) at Carnegie Mellon University
00049  *              Created from Bob Brennan's original.
00050  */
00051 
00057 #ifdef SUN4
00058 #include <sun/audioio.h>
00059 #else
00060 #include <sys/audioio.h>
00061 #endif
00062 #include <sys/filio.h>
00063 
00064 
00065 #ifdef __cplusplus
00066 extern "C" {
00067 #endif
00068 #if 0
00069 /* Fool Emacs. */
00070 }
00071 #endif
00072 
00073 int     audioOpen(const char *dev, int rate);
00074 void    audioPause(void);
00075 void    audioFlush(void);
00076 void    audioStartRecord(void);
00077 void    audioStopRecord(void);
00078 void    audioClose(void);
00079 int     audioSetRecordGain(int gain);
00080 
00081 #ifdef __cplusplus
00082 }
00083 #endif
00084 

Generated on Tue Aug 17 2010 for SphinxBase by  doxygen 1.7.1