\doxysection{codec.\+h}
\label{codec_8h_source}\index{include/osmocom/gmr1/codec/codec.h@{include/osmocom/gmr1/codec/codec.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 \textcolor{comment}{/* GMR-\/1 AMBE vocoder */}}
\DoxyCodeLine{2 }
\DoxyCodeLine{3 \textcolor{comment}{/* (C) 2011-\/2019 by Sylvain Munaut <tnt@246tNt.com>}}
\DoxyCodeLine{4 \textcolor{comment}{ * All Rights Reserved}}
\DoxyCodeLine{5 \textcolor{comment}{ *}}
\DoxyCodeLine{6 \textcolor{comment}{ * This program is free software; you can redistribute it and/or modify}}
\DoxyCodeLine{7 \textcolor{comment}{ * it under the terms of the GNU Affero General Public License as published by}}
\DoxyCodeLine{8 \textcolor{comment}{ * the Free Software Foundation; either version 3 of the License, or}}
\DoxyCodeLine{9 \textcolor{comment}{ * (at your option) any later version.}}
\DoxyCodeLine{10 \textcolor{comment}{ *}}
\DoxyCodeLine{11 \textcolor{comment}{ * This program is distributed in the hope that it will be useful,}}
\DoxyCodeLine{12 \textcolor{comment}{ * but WITHOUT ANY WARRANTY; without even the implied warranty of}}
\DoxyCodeLine{13 \textcolor{comment}{ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the}}
\DoxyCodeLine{14 \textcolor{comment}{ * GNU Affero General Public License for more details.}}
\DoxyCodeLine{15 \textcolor{comment}{ *}}
\DoxyCodeLine{16 \textcolor{comment}{ * You should have received a copy of the GNU Affero General Public License}}
\DoxyCodeLine{17 \textcolor{comment}{ * along with this program.  If not, see <http://www.gnu.org/licenses/>.}}
\DoxyCodeLine{18 \textcolor{comment}{ */}}
\DoxyCodeLine{19 }
\DoxyCodeLine{20 \textcolor{preprocessor}{\#ifndef \_\_OSMO\_GMR1\_CODEC\_H\_\_}}
\DoxyCodeLine{21 \textcolor{preprocessor}{\#define \_\_OSMO\_GMR1\_CODEC\_H\_\_}}
\DoxyCodeLine{22 }
\DoxyCodeLine{32 \textcolor{preprocessor}{\#include <stdint.h>}}
\DoxyCodeLine{33 }
\DoxyCodeLine{34 }
\DoxyCodeLine{35 \textcolor{keyword}{struct }gmr1\_codec;}
\DoxyCodeLine{36 }
\DoxyCodeLine{37 \textcolor{keyword}{struct }gmr1\_codec *gmr1\_codec\_alloc(\textcolor{keywordtype}{void});}
\DoxyCodeLine{38 \textcolor{keywordtype}{void}               gmr1\_codec\_release(\textcolor{keyword}{struct} gmr1\_codec *codec);}
\DoxyCodeLine{39 }
\DoxyCodeLine{40 \textcolor{keywordtype}{int} gmr1\_codec\_decode\_frame(\textcolor{keyword}{struct} gmr1\_codec *codec,}
\DoxyCodeLine{41                             int16\_t *audio, \textcolor{keywordtype}{int} N,}
\DoxyCodeLine{42                             \textcolor{keyword}{const} uint8\_t *frame, \textcolor{keywordtype}{int} bad);}
\DoxyCodeLine{43 }
\DoxyCodeLine{44 \textcolor{keywordtype}{int} gmr1\_codec\_decode\_dtx(\textcolor{keyword}{struct} gmr1\_codec *codec,}
\DoxyCodeLine{45                           int16\_t *audio, \textcolor{keywordtype}{int} N);}
\DoxyCodeLine{46 }
\DoxyCodeLine{47 }
\DoxyCodeLine{50 \textcolor{preprocessor}{\#endif }\textcolor{comment}{/* \_\_OSMO\_GMR1\_CODEC\_H\_\_ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
