dom mar 16 23:37:23 CET 2003

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@647 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Matteo Brancaleoni
2003-03-16 22:37:31 +00:00
parent 7640e83360
commit 61e446f04b
38 changed files with 808 additions and 661 deletions

View File

@@ -64,7 +64,7 @@ struct ulaw_encoder_pvt
};
static struct ast_translator_pvt *
alawtoulaw_new ()
alawtoulaw_new (void)
{
struct ulaw_encoder_pvt *tmp;
tmp = malloc (sizeof (struct ulaw_encoder_pvt));
@@ -79,7 +79,7 @@ alawtoulaw_new ()
}
static struct ast_translator_pvt *
ulawtoalaw_new ()
ulawtoalaw_new (void)
{
struct alaw_encoder_pvt *tmp;
tmp = malloc (sizeof (struct alaw_encoder_pvt));
@@ -189,7 +189,7 @@ ulawtoalaw_frameout (struct ast_translator_pvt *pvt)
*/
static struct ast_frame *
alawtoulaw_sample ()
alawtoulaw_sample (void)
{
static struct ast_frame f;
f.frametype = AST_FRAME_VOICE;
@@ -204,7 +204,7 @@ alawtoulaw_sample ()
}
static struct ast_frame *
ulawtoalaw_sample ()
ulawtoalaw_sample (void)
{
static struct ast_frame f;
f.frametype = AST_FRAME_VOICE;

View File

@@ -185,7 +185,7 @@ struct adpcm_decoder_pvt
*/
static struct ast_translator_pvt *
adpcmtolin_new ()
adpcmtolin_new (void)
{
struct adpcm_decoder_pvt *tmp;
tmp = malloc (sizeof (struct adpcm_decoder_pvt));
@@ -211,7 +211,7 @@ adpcmtolin_new ()
*/
static struct ast_translator_pvt *
lintoadpcm_new ()
lintoadpcm_new (void)
{
struct adpcm_encoder_pvt *tmp;
tmp = malloc (sizeof (struct adpcm_encoder_pvt));
@@ -411,7 +411,7 @@ lintoadpcm_frameout (struct ast_translator_pvt *pvt)
*/
static struct ast_frame *
adpcmtolin_sample ()
adpcmtolin_sample (void)
{
static struct ast_frame f;
f.frametype = AST_FRAME_VOICE;
@@ -430,7 +430,7 @@ adpcmtolin_sample ()
*/
static struct ast_frame *
lintoadpcm_sample ()
lintoadpcm_sample (void)
{
static struct ast_frame f;
f.frametype = AST_FRAME_VOICE;

View File

@@ -72,7 +72,7 @@ struct alaw_decoder_pvt
*/
static struct ast_translator_pvt *
alawtolin_new ()
alawtolin_new (void)
{
struct alaw_decoder_pvt *tmp;
tmp = malloc (sizeof (struct alaw_decoder_pvt));
@@ -98,7 +98,7 @@ alawtolin_new ()
*/
static struct ast_translator_pvt *
lintoalaw_new ()
lintoalaw_new (void)
{
struct alaw_encoder_pvt *tmp;
tmp = malloc (sizeof (struct alaw_encoder_pvt));
@@ -243,7 +243,7 @@ lintoalaw_frameout (struct ast_translator_pvt *pvt)
*/
static struct ast_frame *
alawtolin_sample ()
alawtolin_sample (void)
{
static struct ast_frame f;
f.frametype = AST_FRAME_VOICE;
@@ -262,7 +262,7 @@ alawtolin_sample ()
*/
static struct ast_frame *
lintoalaw_sample ()
lintoalaw_sample (void)
{
static struct ast_frame f;
f.frametype = AST_FRAME_VOICE;

View File

@@ -66,7 +66,7 @@ struct ast_translator_pvt {
#define lpc10_coder_pvt ast_translator_pvt
static struct ast_translator_pvt *lpc10_enc_new()
static struct ast_translator_pvt *lpc10_enc_new(void)
{
struct lpc10_coder_pvt *tmp;
tmp = malloc(sizeof(struct lpc10_coder_pvt));
@@ -82,7 +82,7 @@ static struct ast_translator_pvt *lpc10_enc_new()
return tmp;
}
static struct ast_translator_pvt *lpc10_dec_new()
static struct ast_translator_pvt *lpc10_dec_new(void)
{
struct lpc10_coder_pvt *tmp;
tmp = malloc(sizeof(struct lpc10_coder_pvt));
@@ -97,7 +97,7 @@ static struct ast_translator_pvt *lpc10_dec_new()
}
return tmp;
}
static struct ast_frame *lintolpc10_sample()
static struct ast_frame *lintolpc10_sample(void)
{
static struct ast_frame f;
f.frametype = AST_FRAME_VOICE;
@@ -112,7 +112,7 @@ static struct ast_frame *lintolpc10_sample()
return &f;
}
static struct ast_frame *lpc10tolin_sample()
static struct ast_frame *lpc10tolin_sample(void)
{
static struct ast_frame f;
f.frametype = AST_FRAME_VOICE;

View File

@@ -70,7 +70,7 @@ struct ast_translator_pvt {
#define mp3_coder_pvt ast_translator_pvt
static struct ast_translator_pvt *mp3_new()
static struct ast_translator_pvt *mp3_new(void)
{
struct mp3_coder_pvt *tmp;
tmp = malloc(sizeof(struct mp3_coder_pvt));
@@ -83,7 +83,7 @@ static struct ast_translator_pvt *mp3_new()
return tmp;
}
static struct ast_frame *mp3tolin_sample()
static struct ast_frame *mp3tolin_sample(void)
{
static struct ast_frame f;
int size;

View File

@@ -72,7 +72,7 @@ struct ulaw_decoder_pvt
*/
static struct ast_translator_pvt *
ulawtolin_new ()
ulawtolin_new (void)
{
struct ulaw_decoder_pvt *tmp;
tmp = malloc (sizeof (struct ulaw_decoder_pvt));
@@ -98,7 +98,7 @@ ulawtolin_new ()
*/
static struct ast_translator_pvt *
lintoulaw_new ()
lintoulaw_new (void)
{
struct ulaw_encoder_pvt *tmp;
tmp = malloc (sizeof (struct ulaw_encoder_pvt));
@@ -243,7 +243,7 @@ lintoulaw_frameout (struct ast_translator_pvt *pvt)
*/
static struct ast_frame *
ulawtolin_sample ()
ulawtolin_sample (void)
{
static struct ast_frame f;
f.frametype = AST_FRAME_VOICE;
@@ -262,7 +262,7 @@ ulawtolin_sample ()
*/
static struct ast_frame *
lintoulaw_sample ()
lintoulaw_sample (void)
{
static struct ast_frame f;
f.frametype = AST_FRAME_VOICE;

View File

@@ -1,11 +1,14 @@
/*
$Log$
Revision 1.14 2003/02/12 13:59:15 matteo
mer feb 12 14:56:57 CET 2003
Revision 1.15 2003/03/16 22:37:30 matteo
dom mar 16 23:37:23 CET 2003
Revision 1.1.1.1 2003/02/12 13:59:15 matteo
mer feb 12 14:56:57 CET 2003
Revision 1.1.1.2 2003/03/16 22:37:30 matteo
dom mar 16 23:37:23 CET 2003
Revision 1.2 2003/03/16 16:09:48 markster
Mere James's cleanups for fewer build warnings
Revision 1.1 2000/01/05 00:20:06 markster
Add broken lpc10 code... It's not too far from working I don't think...
@@ -221,11 +224,11 @@ struct lpc10_decoder_state {
*/
struct lpc10_encoder_state * create_lpc10_encoder_state ();
struct lpc10_encoder_state * create_lpc10_encoder_state (void);
void init_lpc10_encoder_state (struct lpc10_encoder_state *st);
int lpc10_encode (real *speech, INT32 *bits, struct lpc10_encoder_state *st);
struct lpc10_decoder_state * create_lpc10_decoder_state ();
struct lpc10_decoder_state * create_lpc10_decoder_state (void);
void init_lpc10_decoder_state (struct lpc10_decoder_state *st);
int lpc10_decode (INT32 *bits, real *speech, struct lpc10_decoder_state *st);