\doxysection{cont\+\_\+ad.\+h}
\label{cont__ad_8h_source}\index{include/sphinxbase/cont\_ad.h@{include/sphinxbase/cont\_ad.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{/*\ -\/*-\/\ c-\/basic-\/offset:\ 4;\ indent-\/tabs-\/mode:\ nil\ -\/*-\/\ */}}
\DoxyCodeLine{00002\ \textcolor{comment}{/*\ ====================================================================}}
\DoxyCodeLine{00003\ \textcolor{comment}{\ *\ Copyright\ (c)\ 1999-\/2001\ Carnegie\ Mellon\ University.\ \ All\ rights}}
\DoxyCodeLine{00004\ \textcolor{comment}{\ *\ reserved.}}
\DoxyCodeLine{00005\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00006\ \textcolor{comment}{\ *\ Redistribution\ and\ use\ in\ source\ and\ binary\ forms,\ with\ or\ without}}
\DoxyCodeLine{00007\ \textcolor{comment}{\ *\ modification,\ are\ permitted\ provided\ that\ the\ following\ conditions}}
\DoxyCodeLine{00008\ \textcolor{comment}{\ *\ are\ met:}}
\DoxyCodeLine{00009\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00010\ \textcolor{comment}{\ *\ 1.\ Redistributions\ of\ source\ code\ must\ retain\ the\ above\ copyright}}
\DoxyCodeLine{00011\ \textcolor{comment}{\ *\ \ \ \ notice,\ this\ list\ of\ conditions\ and\ the\ following\ disclaimer.\ }}
\DoxyCodeLine{00012\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00013\ \textcolor{comment}{\ *\ 2.\ Redistributions\ in\ binary\ form\ must\ reproduce\ the\ above\ copyright}}
\DoxyCodeLine{00014\ \textcolor{comment}{\ *\ \ \ \ notice,\ this\ list\ of\ conditions\ and\ the\ following\ disclaimer\ in}}
\DoxyCodeLine{00015\ \textcolor{comment}{\ *\ \ \ \ the\ documentation\ and/or\ other\ materials\ provided\ with\ the}}
\DoxyCodeLine{00016\ \textcolor{comment}{\ *\ \ \ \ distribution.}}
\DoxyCodeLine{00017\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00018\ \textcolor{comment}{\ *\ This\ work\ was\ supported\ in\ part\ by\ funding\ from\ the\ Defense\ Advanced\ }}
\DoxyCodeLine{00019\ \textcolor{comment}{\ *\ Research\ Projects\ Agency\ and\ the\ National\ Science\ Foundation\ of\ the\ }}
\DoxyCodeLine{00020\ \textcolor{comment}{\ *\ United\ States\ of\ America,\ and\ the\ CMU\ Sphinx\ Speech\ Consortium.}}
\DoxyCodeLine{00021\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00022\ \textcolor{comment}{\ *\ THIS\ SOFTWARE\ IS\ PROVIDED\ BY\ CARNEGIE\ MELLON\ UNIVERSITY\ \`{}\`{}AS\ IS''\ AND\ }}
\DoxyCodeLine{00023\ \textcolor{comment}{\ *\ ANY\ EXPRESSED\ OR\ IMPLIED\ WARRANTIES,\ INCLUDING,\ BUT\ NOT\ LIMITED\ TO,\ }}
\DoxyCodeLine{00024\ \textcolor{comment}{\ *\ THE\ IMPLIED\ WARRANTIES\ OF\ MERCHANTABILITY\ AND\ FITNESS\ FOR\ A\ PARTICULAR}}
\DoxyCodeLine{00025\ \textcolor{comment}{\ *\ PURPOSE\ ARE\ DISCLAIMED.\ \ IN\ NO\ EVENT\ SHALL\ CARNEGIE\ MELLON\ UNIVERSITY}}
\DoxyCodeLine{00026\ \textcolor{comment}{\ *\ NOR\ ITS\ EMPLOYEES\ BE\ LIABLE\ FOR\ ANY\ DIRECT,\ INDIRECT,\ INCIDENTAL,}}
\DoxyCodeLine{00027\ \textcolor{comment}{\ *\ SPECIAL,\ EXEMPLARY,\ OR\ CONSEQUENTIAL\ DAMAGES\ (INCLUDING,\ BUT\ NOT\ }}
\DoxyCodeLine{00028\ \textcolor{comment}{\ *\ LIMITED\ TO,\ PROCUREMENT\ OF\ SUBSTITUTE\ GOODS\ OR\ SERVICES;\ LOSS\ OF\ USE,\ }}
\DoxyCodeLine{00029\ \textcolor{comment}{\ *\ DATA,\ OR\ PROFITS;\ OR\ BUSINESS\ INTERRUPTION)\ HOWEVER\ CAUSED\ AND\ ON\ ANY\ }}
\DoxyCodeLine{00030\ \textcolor{comment}{\ *\ THEORY\ OF\ LIABILITY,\ WHETHER\ IN\ CONTRACT,\ STRICT\ LIABILITY,\ OR\ TORT\ }}
\DoxyCodeLine{00031\ \textcolor{comment}{\ *\ (INCLUDING\ NEGLIGENCE\ OR\ OTHERWISE)\ ARISING\ IN\ ANY\ WAY\ OUT\ OF\ THE\ USE\ }}
\DoxyCodeLine{00032\ \textcolor{comment}{\ *\ OF\ THIS\ SOFTWARE,\ EVEN\ IF\ ADVISED\ OF\ THE\ POSSIBILITY\ OF\ SUCH\ DAMAGE.}}
\DoxyCodeLine{00033\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00034\ \textcolor{comment}{\ *\ ====================================================================}}
\DoxyCodeLine{00035\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00036\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00037\ \textcolor{comment}{/*}}
\DoxyCodeLine{00038\ \textcolor{comment}{\ *\ cont\_ad.h\ -\/-\/\ Continuous\ A/D\ listening\ and\ silence\ filtering\ module.}}
\DoxyCodeLine{00039\ \textcolor{comment}{\ *\ }}
\DoxyCodeLine{00040\ \textcolor{comment}{\ *\ **********************************************}}
\DoxyCodeLine{00041\ \textcolor{comment}{\ *\ CMU\ ARPA\ Speech\ Project}}
\DoxyCodeLine{00042\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00043\ \textcolor{comment}{\ *\ Copyright\ (c)\ 1996\ Carnegie\ Mellon\ University.}}
\DoxyCodeLine{00044\ \textcolor{comment}{\ *\ ALL\ RIGHTS\ RESERVED.}}
\DoxyCodeLine{00045\ \textcolor{comment}{\ *\ **********************************************}}
\DoxyCodeLine{00046\ \textcolor{comment}{\ *\ }}
\DoxyCodeLine{00047\ \textcolor{comment}{\ *\ HISTORY}}
\DoxyCodeLine{00048\ \textcolor{comment}{\ *\ }}
\DoxyCodeLine{00049\ \textcolor{comment}{\ *\ 13-\/Jul-\/98\ \ \ \ M\ K\ Ravishankar\ (rkm@cs.cmu.edu)\ at\ Carnegie\ Mellon\ University}}
\DoxyCodeLine{00050\ \textcolor{comment}{\ *\ \ \ \ \ \ \ \ \ \ \ \ \ \ Added\ spf\ and\ adbufsize\ to\ cont\_ad\_t\ in\ order\ to\ support\ variable}}
\DoxyCodeLine{00051\ \textcolor{comment}{\ *\ \ \ \ \ \ \ \ \ \ \ \ \ \ frame\ sizes\ depending\ on\ audio\ sampling\ rate.}}
\DoxyCodeLine{00052\ \textcolor{comment}{\ *\ }}
\DoxyCodeLine{00053\ \textcolor{comment}{\ *\ 30-\/Jun-\/98\ \ \ \ M\ K\ Ravishankar\ (rkm@cs.cmu.edu)\ at\ Carnegie\ Mellon\ University}}
\DoxyCodeLine{00054\ \textcolor{comment}{\ *\ \ \ \ \ \ \ \ \ \ \ \ \ \ Added\ FILE*\ argument\ to\ cont\_ad\_powhist\_dump().}}
\DoxyCodeLine{00055\ \textcolor{comment}{\ *\ }}
\DoxyCodeLine{00056\ \textcolor{comment}{\ *\ 16-\/Jan-\/98\ \ \ \ Paul\ Placeway\ (pwp@cs.cmu.edu)\ at\ Carnegie\ Mellon\ University}}
\DoxyCodeLine{00057\ \textcolor{comment}{\ *\ \ \ \ \ \ \ \ \ \ \ \ \ \ Changed\ to\ use\ dB\ instead\ of\ the\ weird\ power\ measure.}}
\DoxyCodeLine{00058\ \textcolor{comment}{\ *\ \ \ \ \ \ \ \ \ \ \ \ \ \ Added\ most\ system\ parameters\ to\ cont\_ad\_t\ instead\ of\ hardwiring}}
\DoxyCodeLine{00059\ \textcolor{comment}{\ *\ \ \ \ \ \ \ \ \ \ \ \ \ \ them\ in\ cont\_ad.c.}}
\DoxyCodeLine{00060\ \textcolor{comment}{\ *\ \ \ \ \ \ \ \ \ \ \ \ \ \ Added\ cont\_ad\_set\_params()\ and\ cont\_ad\_get\_params().}}
\DoxyCodeLine{00061\ \textcolor{comment}{\ *\ }}
\DoxyCodeLine{00062\ \textcolor{comment}{\ *\ 28-\/Jul-\/96\ \ \ \ M\ K\ Ravishankar\ (rkm@cs.cmu.edu)\ at\ Carnegie\ Mellon\ University}}
\DoxyCodeLine{00063\ \textcolor{comment}{\ *\ \ \ \ \ \ \ \ \ \ \ \ \ \ Added\ cont\_ad\_t.siglvl.}}
\DoxyCodeLine{00064\ \textcolor{comment}{\ *\ }}
\DoxyCodeLine{00065\ \textcolor{comment}{\ *\ 27-\/Jun-\/96\ \ \ \ M\ K\ Ravishankar\ (rkm@cs.cmu.edu)\ at\ Carnegie\ Mellon\ University}}
\DoxyCodeLine{00066\ \textcolor{comment}{\ *\ \ \ \ \ \ \ \ \ \ \ \ \ \ Added\ the\ option\ for\ cont\_ad\_read\ to\ return\ -\/1\ on\ EOF.}}
\DoxyCodeLine{00067\ \textcolor{comment}{\ *\ }}
\DoxyCodeLine{00068\ \textcolor{comment}{\ *\ 21-\/Jun-\/96\ \ \ \ M\ K\ Ravishankar\ (rkm@cs.cmu.edu)\ at\ Carnegie\ Mellon\ University}}
\DoxyCodeLine{00069\ \textcolor{comment}{\ *\ \ \ \ \ \ \ \ \ \ \ \ \ \ Added\ cont\_ad\_set\_thresh().}}
\DoxyCodeLine{00070\ \textcolor{comment}{\ *\ }}
\DoxyCodeLine{00071\ \textcolor{comment}{\ *\ 20-\/Jun-\/96\ \ \ \ M\ K\ Ravishankar\ (rkm@cs.cmu.edu)\ at\ Carnegie\ Mellon\ University}}
\DoxyCodeLine{00072\ \textcolor{comment}{\ *\ \ \ \ \ \ \ \ \ \ \ \ \ \ Separated\ thresholds\ for\ speech\ and\ silence.}}
\DoxyCodeLine{00073\ \textcolor{comment}{\ *\ }}
\DoxyCodeLine{00074\ \textcolor{comment}{\ *\ 17-\/Jun-\/96\ \ \ \ M\ K\ Ravishankar\ (rkm@cs.cmu.edu)\ at\ Carnegie\ Mellon\ University}}
\DoxyCodeLine{00075\ \textcolor{comment}{\ *\ \ \ \ \ \ \ \ \ \ \ \ \ \ Created,\ based\ loosely\ on\ Steve\ Reed's\ original\ implementation.}}
\DoxyCodeLine{00076\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00077\ }
\DoxyCodeLine{00078\ }
\DoxyCodeLine{00079\ \textcolor{preprocessor}{\#ifndef\ \_CONT\_AD\_H\_}}
\DoxyCodeLine{00080\ \textcolor{preprocessor}{\#define\ \_CONT\_AD\_H\_}}
\DoxyCodeLine{00081\ }
\DoxyCodeLine{00082\ \textcolor{comment}{/*\ Win32/WinCE\ DLL\ gunk\ */}}
\DoxyCodeLine{00083\ \textcolor{preprocessor}{\#include\ <sphinxbase/sphinxbase\_export.h>}}
\DoxyCodeLine{00084\ \textcolor{preprocessor}{\#include\ <sphinxbase/prim\_type.h>}}
\DoxyCodeLine{00085\ \textcolor{preprocessor}{\#include\ <sphinxbase/ad.h>}}
\DoxyCodeLine{00086\ }
\DoxyCodeLine{00114\ \textcolor{preprocessor}{\#include\ <stdio.h>}}
\DoxyCodeLine{00115\ }
\DoxyCodeLine{00116\ }
\DoxyCodeLine{00117\ \textcolor{preprocessor}{\#ifdef\ \_\_cplusplus}}
\DoxyCodeLine{00118\ \textcolor{keyword}{extern}\ \textcolor{stringliteral}{"{}C"{}}\ \{}
\DoxyCodeLine{00119\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00120\ \textcolor{preprocessor}{\#if\ 0}}
\DoxyCodeLine{00121\ \textcolor{comment}{/*\ Fool\ Emacs.\ */}}
\DoxyCodeLine{00122\ \}}
\DoxyCodeLine{00123\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00124\ }
\DoxyCodeLine{00125\ \textcolor{comment}{/*\ States\ of\ continuous\ listening\ module\ */}}
\DoxyCodeLine{00126\ \textcolor{preprocessor}{\#define\ CONT\_AD\_STATE\_SIL\ \ \ \ \ \ \ 0}}
\DoxyCodeLine{00127\ \textcolor{preprocessor}{\#define\ CONT\_AD\_STATE\_SPEECH\ \ \ \ 1}}
\DoxyCodeLine{00128\ }
\DoxyCodeLine{00129\ }
\DoxyCodeLine{00135\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }spseg\_s\ \{}
\DoxyCodeLine{00136\ \ \ \ \ int32\ startfrm;\ \ \ \ \ }
\DoxyCodeLine{00137\ \ \ \ \ int32\ nfrm;\ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00138\ \ \ \ \ \textcolor{keyword}{struct\ }spseg\_s\ *next;\ \ \ \ }
\DoxyCodeLine{00139\ \}\ spseg\_t;}
\DoxyCodeLine{00140\ }
\DoxyCodeLine{00141\ }
\DoxyCodeLine{00151\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\{}
\DoxyCodeLine{00152\ \ \ \ \ \textcolor{comment}{/*\ Function\ to\ be\ called\ for\ obtaining\ A/D\ data\ (see\ prototype\ for\ ad\_read\ in\ ad.h)\ */}}
\DoxyCodeLine{00153\ \ \ \ \ int32\ (*adfunc)(ad\_rec\_t\ *ad,\ int16\ *buf,\ int32\ max);}
\DoxyCodeLine{00154\ \ \ \ \ ad\_rec\_t\ *ad;\ \ \ \ \ }
\DoxyCodeLine{00156\ \ \ \ \ int32\ rawmode;\ \ \ \ \ \ \ }
\DoxyCodeLine{00158\ \ \ \ \ int16\ *adbuf;\ \ }
\DoxyCodeLine{00160\ \ \ \ \ \textcolor{comment}{/*\ **************************************************************************}}
\DoxyCodeLine{00161\ \textcolor{comment}{\ \ \ \ \ *\ state,\ read\_ts,\ and\ siglvl\ are\ provided\ for\ READ-\/ONLY\ use\ by\ client}}
\DoxyCodeLine{00162\ \textcolor{comment}{\ \ \ \ \ *\ applications,\ and\ are\ updated\ by\ calls\ to\ cont\_ad\_read()\ (see\ below).\ \ All}}
\DoxyCodeLine{00163\ \textcolor{comment}{\ \ \ \ \ *\ other\ variables\ should\ be\ left\ alone.}}
\DoxyCodeLine{00164\ \textcolor{comment}{\ \ \ \ \ */}}
\DoxyCodeLine{00165\ \ \ \ \ int32\ state;\ \ \ }
\DoxyCodeLine{00167\ \ \ \ \ int32\ read\_ts;\ \ \ \ \ \ \ }
\DoxyCodeLine{00171\ \ \ \ \ int32\ seglen;\ }
\DoxyCodeLine{00175\ \ \ \ \ int32\ siglvl;\ }
\DoxyCodeLine{00178\ \ \ \ \ \textcolor{comment}{/*\ ************************************************************************\ */}}
\DoxyCodeLine{00179\ \ \ \ \ }
\DoxyCodeLine{00180\ \ \ \ \ int32\ sps;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00183\ \ \ \ \ int32\ eof;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00185\ \ \ \ \ int32\ spf;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00186\ \ \ \ \ int32\ adbufsize;\ \ \ }
\DoxyCodeLine{00187\ \ \ \ \ int32\ prev\_sample;\ \ \ \ \ \ \ }
\DoxyCodeLine{00188\ \ \ \ \ int32\ headfrm;\ \ \ \ \ \ \ }
\DoxyCodeLine{00189\ \ \ \ \ int32\ n\_frm;\ \ \ }
\DoxyCodeLine{00190\ \ \ \ \ int32\ n\_sample;\ \ \ \ \ }
\DoxyCodeLine{00191\ \ \ \ \ int32\ tot\_frm;\ \ \ \ \ \ \ }
\DoxyCodeLine{00192\ \ \ \ \ int32\ noise\_level;\ \ \ \ \ \ \ }
\DoxyCodeLine{00194\ \ \ \ \ int32\ *pow\_hist;\ \ \ \ }
\DoxyCodeLine{00195\ \ \ \ \ \textcolor{keywordtype}{char}\ *frm\_pow;\ \ \ \ \ \ \ }
\DoxyCodeLine{00197\ \ \ \ \ int32\ auto\_thresh;\ \ }
\DoxyCodeLine{00198\ \ \ \ \ int32\ delta\_sil;\ \ \ }
\DoxyCodeLine{00199\ \ \ \ \ int32\ delta\_speech;\ \ \ \ \ }
\DoxyCodeLine{00200\ \ \ \ \ int32\ min\_noise;\ \ \ }
\DoxyCodeLine{00201\ \ \ \ \ int32\ max\_noise;\ \ \ }
\DoxyCodeLine{00202\ \ \ \ \ int32\ winsize;\ \ \ \ \ \ \ }
\DoxyCodeLine{00203\ \ \ \ \ int32\ speech\_onset;\ \ \ \ \ }
\DoxyCodeLine{00204\ \ \ \ \ int32\ sil\_onset;\ \ \ }
\DoxyCodeLine{00205\ \ \ \ \ int32\ leader;\ }
\DoxyCodeLine{00206\ \ \ \ \ int32\ trailer;\ \ \ \ \ \ \ }
\DoxyCodeLine{00208\ \ \ \ \ int32\ thresh\_speech;}
\DoxyCodeLine{00210\ \ \ \ \ int32\ thresh\_sil;\ }
\DoxyCodeLine{00212\ \ \ \ \ int32\ thresh\_update;}
\DoxyCodeLine{00213\ \ \ \ \ float32\ adapt\_rate;\ \ \ \ \ \ \ }
\DoxyCodeLine{00217\ \ \ \ \ int32\ tail\_state;\ }
\DoxyCodeLine{00220\ \ \ \ \ int32\ win\_startfrm;\ \ \ \ \ }
\DoxyCodeLine{00221\ \ \ \ \ int32\ win\_validfrm;\ \ \ \ \ }
\DoxyCodeLine{00222\ \ \ \ \ int32\ n\_other;\ \ \ \ \ \ \ }
\DoxyCodeLine{00224\ \ \ \ \ spseg\_t\ *spseg\_head;}
\DoxyCodeLine{00225\ \ \ \ \ spseg\_t\ *spseg\_tail;}
\DoxyCodeLine{00227\ \ \ \ \ FILE\ *rawfp;\ \ \ }
\DoxyCodeLine{00231\ \ \ \ \ FILE\ *logfp;\ \ \ }
\DoxyCodeLine{00236\ \ \ \ \ int32\ n\_calib\_frame;\ }
\DoxyCodeLine{00237\ \}\ cont\_ad\_t;}
\DoxyCodeLine{00238\ }
\DoxyCodeLine{00239\ }
\DoxyCodeLine{00255\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00256\ cont\_ad\_t\ *cont\_ad\_init\ (ad\_rec\_t\ *ad,\ \ \ \ \ }
\DoxyCodeLine{00257\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ int32\ (*adfunc)(ad\_rec\_t\ *ad,\ int16\ *buf,\ int32\ max)}
\DoxyCodeLine{00261\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ );}
\DoxyCodeLine{00262\ }
\DoxyCodeLine{00269\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00270\ cont\_ad\_t\ *cont\_ad\_init\_rawmode\ (ad\_rec\_t\ *ad,}
\DoxyCodeLine{00271\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ int32\ (*adfunc)(ad\_rec\_t\ *ad,\ int16\ *buf,\ int32\ max));}
\DoxyCodeLine{00272\ }
\DoxyCodeLine{00273\ }
\DoxyCodeLine{00302\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00303\ int32\ cont\_ad\_read\ (cont\_ad\_t\ *r,\ \ }
\DoxyCodeLine{00304\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ int16\ *buf,\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00307\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ int32\ max\ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00310\ \ \ \ \ \ \ \ \ );}
\DoxyCodeLine{00311\ }
\DoxyCodeLine{00315\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00316\ int32\ cont\_ad\_buffer\_space(cont\_ad\_t\ *r);}
\DoxyCodeLine{00317\ }
\DoxyCodeLine{00330\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00331\ int32\ cont\_ad\_calib\ (cont\_ad\_t\ *cont\ \ \ \ \ \ }
\DoxyCodeLine{00332\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ );}
\DoxyCodeLine{00333\ }
\DoxyCodeLine{00345\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00346\ int32\ cont\_ad\_calib\_loop\ (cont\_ad\_t\ *r,\ int16\ *buf,\ int32\ max);\ }
\DoxyCodeLine{00347\ }
\DoxyCodeLine{00359\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00360\ int32\ cont\_ad\_calib\_size(cont\_ad\_t\ *r);}
\DoxyCodeLine{00361\ }
\DoxyCodeLine{00374\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00375\ int32\ cont\_ad\_set\_thresh\ (cont\_ad\_t\ *cont,\ \ \ }
\DoxyCodeLine{00376\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ int32\ sil,\ \ \ \ }
\DoxyCodeLine{00377\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ int32\ sp\ \ \ \ \ \ }
\DoxyCodeLine{00378\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ );}
\DoxyCodeLine{00379\ }
\DoxyCodeLine{00380\ }
\DoxyCodeLine{00388\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00389\ int32\ cont\_ad\_set\_params\ (cont\_ad\_t\ *r,\ int32\ delta\_sil,\ int32\ delta\_speech,}
\DoxyCodeLine{00390\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ int32\ min\_noise,\ int32\ max\_noise,}
\DoxyCodeLine{00391\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ int32\ winsize,\ int32\ speech\_onset,\ int32\ sil\_onset,}
\DoxyCodeLine{00392\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ int32\ leader,\ int32\ trailer,}
\DoxyCodeLine{00393\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ float32\ adapt\_rate);}
\DoxyCodeLine{00394\ }
\DoxyCodeLine{00402\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00403\ int32\ cont\_ad\_get\_params\ (cont\_ad\_t\ *r,\ int32\ *delta\_sil,\ int32\ *delta\_speech,}
\DoxyCodeLine{00404\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ int32\ *min\_noise,\ int32\ *max\_noise,}
\DoxyCodeLine{00405\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ int32\ *winsize,\ int32\ *speech\_onset,\ int32\ *sil\_onset,}
\DoxyCodeLine{00406\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ int32\ *leader,\ int32\ *trailer,}
\DoxyCodeLine{00407\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ float32\ *adapt\_rate);}
\DoxyCodeLine{00408\ }
\DoxyCodeLine{00413\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00414\ int32\ cont\_ad\_reset\ (cont\_ad\_t\ *cont);\ \ \ \ \textcolor{comment}{/*\ In:\ Object\ pointer\ from\ cont\_ad\_init\ */}}
\DoxyCodeLine{00415\ }
\DoxyCodeLine{00416\ }
\DoxyCodeLine{00420\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00421\ int32\ cont\_ad\_close\ (cont\_ad\_t\ *cont);\ \ \ \ \textcolor{comment}{/*\ In:\ Object\ pointer\ from\ cont\_ad\_init\ */}}
\DoxyCodeLine{00422\ }
\DoxyCodeLine{00423\ }
\DoxyCodeLine{00427\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00428\ \textcolor{keywordtype}{void}\ cont\_ad\_powhist\_dump\ (FILE\ *fp,\ cont\_ad\_t\ *cont);}
\DoxyCodeLine{00429\ }
\DoxyCodeLine{00430\ }
\DoxyCodeLine{00435\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00436\ int32\ cont\_ad\_detach\ (cont\_ad\_t\ *c);}
\DoxyCodeLine{00437\ }
\DoxyCodeLine{00438\ }
\DoxyCodeLine{00444\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00445\ int32\ cont\_ad\_attach\ (cont\_ad\_t\ *c,\ ad\_rec\_t\ *a,\ int32\ (*func)(ad\_rec\_t\ *,\ int16\ *,\ int32));}
\DoxyCodeLine{00446\ }
\DoxyCodeLine{00447\ }
\DoxyCodeLine{00459\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00460\ int32\ cont\_ad\_set\_rawfp\ (cont\_ad\_t\ *c,\ \ \ \ \ \ \ \ \textcolor{comment}{/*\ The\ cont\_ad\ object\ being\ addressed\ */}}
\DoxyCodeLine{00461\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ FILE\ *fp);\ \ \ \ \ \textcolor{comment}{/*\ File\ to\ which\ raw\ audio\ data\ is\ to}}
\DoxyCodeLine{00462\ \textcolor{comment}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ be\ dumped;\ NULL\ to\ stop\ dumping.\ */}}
\DoxyCodeLine{00463\ }
\DoxyCodeLine{00471\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00472\ int32\ cont\_ad\_set\_logfp\ (cont\_ad\_t\ *c,\ \ \ \ \ \ \ \ \textcolor{comment}{/*\ The\ cont\_ad\ object\ being\ addressed\ */}}
\DoxyCodeLine{00473\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ FILE\ *fp);\ \ \ \ \ \textcolor{comment}{/*\ File\ to\ which\ logs\ are\ written;}}
\DoxyCodeLine{00474\ \textcolor{comment}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ NULL\ to\ stop\ logging.\ */}}
\DoxyCodeLine{00475\ }
\DoxyCodeLine{00484\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00485\ int32\ cont\_set\_thresh(cont\_ad\_t\ *r,\ int32\ silence,\ int32\ speech);}
\DoxyCodeLine{00486\ }
\DoxyCodeLine{00487\ \textcolor{preprocessor}{\#ifdef\ \_\_cplusplus}}
\DoxyCodeLine{00488\ \}}
\DoxyCodeLine{00489\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00490\ }
\DoxyCodeLine{00491\ }
\DoxyCodeLine{00492\ \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
