\doxysection{yin.\+h}
\label{yin_8h_source}\index{include/sphinxbase/yin.h@{include/sphinxbase/yin.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)\ 2008\ Beyond\ Access,\ Inc.\ \ All\ rights\ reserved.}}
\DoxyCodeLine{00004\ \textcolor{comment}{\ *\ }}
\DoxyCodeLine{00005\ \textcolor{comment}{\ *\ Redistribution\ and\ use\ in\ source\ and\ binary\ forms,\ with\ or\ without}}
\DoxyCodeLine{00006\ \textcolor{comment}{\ *\ modification,\ are\ permitted\ provided\ that\ the\ following\ conditions}}
\DoxyCodeLine{00007\ \textcolor{comment}{\ *\ are\ met:}}
\DoxyCodeLine{00008\ \textcolor{comment}{\ *\ }}
\DoxyCodeLine{00009\ \textcolor{comment}{\ *\ 1.\ Redistributions\ of\ source\ code\ must\ retain\ the\ above\ copyright}}
\DoxyCodeLine{00010\ \textcolor{comment}{\ *\ \ \ \ notice,\ this\ list\ of\ conditions\ and\ the\ following\ disclaimer.\ }}
\DoxyCodeLine{00011\ \textcolor{comment}{\ *\ }}
\DoxyCodeLine{00012\ \textcolor{comment}{\ *\ 2.\ Redistributions\ in\ binary\ form\ must\ reproduce\ the\ above\ copyright}}
\DoxyCodeLine{00013\ \textcolor{comment}{\ *\ \ \ \ notice,\ this\ list\ of\ conditions\ and\ the\ following\ disclaimer\ in}}
\DoxyCodeLine{00014\ \textcolor{comment}{\ *\ \ \ \ the\ documentation\ and/or\ other\ materials\ provided\ with\ the}}
\DoxyCodeLine{00015\ \textcolor{comment}{\ *\ \ \ \ distribution.}}
\DoxyCodeLine{00016\ \textcolor{comment}{\ *\ }}
\DoxyCodeLine{00017\ \textcolor{comment}{\ *\ THIS\ SOFTWARE\ IS\ PROVIDED\ BY\ BEYOND\ ACCESS,\ INC.\ \`{}\`{}AS\ IS''\ AND\ ANY}}
\DoxyCodeLine{00018\ \textcolor{comment}{\ *\ EXPRESSED\ OR\ IMPLIED\ WARRANTIES,\ INCLUDING,\ BUT\ NOT\ LIMITED\ TO,\ THE}}
\DoxyCodeLine{00019\ \textcolor{comment}{\ *\ IMPLIED\ WARRANTIES\ OF\ MERCHANTABILITY\ AND\ FITNESS\ FOR\ A\ PARTICULAR}}
\DoxyCodeLine{00020\ \textcolor{comment}{\ *\ PURPOSE\ ARE\ DISCLAIMED.\ \ IN\ NO\ EVENT\ SHALL\ BEYOND\ ACCESS,\ INC.\ \ NOR}}
\DoxyCodeLine{00021\ \textcolor{comment}{\ *\ ITS\ EMPLOYEES\ BE\ LIABLE\ FOR\ ANY\ DIRECT,\ INDIRECT,\ INCIDENTAL,\ SPECIAL,}}
\DoxyCodeLine{00022\ \textcolor{comment}{\ *\ EXEMPLARY,\ OR\ CONSEQUENTIAL\ DAMAGES\ (INCLUDING,\ BUT\ NOT\ LIMITED\ TO,}}
\DoxyCodeLine{00023\ \textcolor{comment}{\ *\ PROCUREMENT\ OF\ SUBSTITUTE\ GOODS\ OR\ SERVICES;\ LOSS\ OF\ USE,\ DATA,\ OR}}
\DoxyCodeLine{00024\ \textcolor{comment}{\ *\ PROFITS;\ OR\ BUSINESS\ INTERRUPTION)\ HOWEVER\ CAUSED\ AND\ ON\ ANY\ THEORY\ OF}}
\DoxyCodeLine{00025\ \textcolor{comment}{\ *\ LIABILITY,\ WHETHER\ IN\ CONTRACT,\ STRICT\ LIABILITY,\ OR\ TORT\ (INCLUDING}}
\DoxyCodeLine{00026\ \textcolor{comment}{\ *\ NEGLIGENCE\ OR\ OTHERWISE)\ ARISING\ IN\ ANY\ WAY\ OUT\ OF\ THE\ USE\ OF\ THIS}}
\DoxyCodeLine{00027\ \textcolor{comment}{\ *\ SOFTWARE,\ EVEN\ IF\ ADVISED\ OF\ THE\ POSSIBILITY\ OF\ SUCH\ DAMAGE.}}
\DoxyCodeLine{00028\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00029\ }
\DoxyCodeLine{00042\ \textcolor{preprocessor}{\#ifndef\ \_\_YIN\_H\_\_}}
\DoxyCodeLine{00043\ \textcolor{preprocessor}{\#define\ \_\_YIN\_H\_\_}}
\DoxyCodeLine{00044\ }
\DoxyCodeLine{00045\ \textcolor{preprocessor}{\#ifdef\ \_\_cplusplus}}
\DoxyCodeLine{00046\ \textcolor{keyword}{extern}\ \textcolor{stringliteral}{"{}C"{}}}
\DoxyCodeLine{00047\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00048\ \textcolor{preprocessor}{\#if\ 0}}
\DoxyCodeLine{00049\ \}\ \textcolor{comment}{/*\ Fool\ Emacs.\ */}}
\DoxyCodeLine{00050\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00051\ }
\DoxyCodeLine{00052\ \textcolor{comment}{/*\ Win32/WinCE\ DLL\ gunk\ */}}
\DoxyCodeLine{00053\ \textcolor{preprocessor}{\#include\ <sphinxbase/sphinxbase\_export.h>}}
\DoxyCodeLine{00054\ \textcolor{preprocessor}{\#include\ <sphinxbase/prim\_type.h>}}
\DoxyCodeLine{00055\ }
\DoxyCodeLine{00059\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }yin\_s\ yin\_t;}
\DoxyCodeLine{00060\ }
\DoxyCodeLine{00064\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00065\ yin\_t\ *yin\_init(\textcolor{keywordtype}{int}\ frame\_size,\ \textcolor{keywordtype}{float}\ search\_threshold,}
\DoxyCodeLine{00066\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{float}\ search\_range,\ \textcolor{keywordtype}{int}\ smooth\_window);}
\DoxyCodeLine{00067\ }
\DoxyCodeLine{00071\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00072\ \textcolor{keywordtype}{void}\ yin\_free(yin\_t\ *pe);}
\DoxyCodeLine{00073\ }
\DoxyCodeLine{00077\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00078\ \textcolor{keywordtype}{void}\ yin\_start(yin\_t\ *pe);}
\DoxyCodeLine{00079\ }
\DoxyCodeLine{00083\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00084\ \textcolor{keywordtype}{void}\ yin\_end(yin\_t\ *pe);}
\DoxyCodeLine{00085\ }
\DoxyCodeLine{00093\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00094\ \textcolor{keywordtype}{void}\ yin\_write(yin\_t\ *pe,\ int16\ \textcolor{keyword}{const}\ *frame);}
\DoxyCodeLine{00095\ }
\DoxyCodeLine{00109\ SPHINXBASE\_EXPORT}
\DoxyCodeLine{00110\ \textcolor{keywordtype}{int}\ yin\_read(yin\_t\ *pe,\ uint16\ *out\_period,\ uint16\ *out\_bestdiff);}
\DoxyCodeLine{00111\ }
\DoxyCodeLine{00112\ \textcolor{preprocessor}{\#ifdef\ \_\_cplusplus}}
\DoxyCodeLine{00113\ \}}
\DoxyCodeLine{00114\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00115\ }
\DoxyCodeLine{00116\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{/*\ \_\_YIN\_H\_\_\ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{00117\ }

\end{DoxyCode}
