forked from sippy/libg722
-
Notifications
You must be signed in to change notification settings - Fork 0
/
g722_decoder.h
39 lines (32 loc) · 992 Bytes
/
g722_decoder.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* g722.h - The ITU G.722 codec.
*
* Written by Steve Underwood <steveu@coppice.org>
*
* Copyright (C) 2005 Steve Underwood
*
* Despite my general liking of the GPL, I place my own contributions
* to this code in the public domain for the benefit of all mankind -
* even the slimy ones who might try to proprietize my work and use it
* to my detriment.
*
* Based on a single channel G.722 codec which is:
*
***** Copyright (c) CMU 1993 *****
* Computer Science, Speech Group
* Chengxiang Lu and Alex Hauptmann
*
* $Id: g722_decoder.h,v 1.1 2012/08/07 11:33:45 sobomax Exp $
*/
/*! \file */
#if !defined(_G722_DECODER_H_)
#define _G722_DECODER_H_
#include "g722.h"
#ifndef _G722_DEC_CTX_DEFINED
typedef void G722_DEC_CTX;
#define _G722_DEC_CTX_DEFINED
#endif
G722_DEC_CTX *g722_decoder_new(int rate, int options);
int g722_decoder_destroy(G722_DEC_CTX *s);
int g722_decode(G722_DEC_CTX *s, const uint8_t g722_data[], int len, int16_t amp[]);
#endif