aboutsummaryrefslogtreecommitdiffstats
path: root/codecs
diff options
context:
space:
mode:
authormatteo <matteo@f38db490-d61c-443f-a65b-d21fe96a405b>2003-03-16 22:37:31 +0000
committermatteo <matteo@f38db490-d61c-443f-a65b-d21fe96a405b>2003-03-16 22:37:31 +0000
commit342cf00fb74d7832598ad2431b3338512273959e (patch)
tree42e44ab95928950f65a80b2dd298dc79f9b82a8e /codecs
parent40b9926da3752f8e6f5d1a23d4dd8ae8655df2b1 (diff)
dom mar 16 23:37:23 CET 2003
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@647 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs')
-rwxr-xr-xcodecs/codec_a_mu.c8
-rwxr-xr-xcodecs/codec_adpcm.c8
-rwxr-xr-xcodecs/codec_alaw.c8
-rwxr-xr-xcodecs/codec_lpc10.c8
-rwxr-xr-xcodecs/codec_mp3_d.c4
-rwxr-xr-xcodecs/codec_ulaw.c8
-rwxr-xr-xcodecs/lpc10/lpc10.h15
7 files changed, 31 insertions, 28 deletions
diff --git a/codecs/codec_a_mu.c b/codecs/codec_a_mu.c
index d7d6ff11e..3d1496c6c 100755
--- a/codecs/codec_a_mu.c
+++ b/codecs/codec_a_mu.c
@@ -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;
diff --git a/codecs/codec_adpcm.c b/codecs/codec_adpcm.c
index fdd03675e..641f28b7e 100755
--- a/codecs/codec_adpcm.c
+++ b/codecs/codec_adpcm.c
@@ -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;
diff --git a/codecs/codec_alaw.c b/codecs/codec_alaw.c
index 54a464cfc..192b112c9 100755
--- a/codecs/codec_alaw.c
+++ b/codecs/codec_alaw.c
@@ -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;
diff --git a/codecs/codec_lpc10.c b/codecs/codec_lpc10.c
index 3ee94326c..3c5d2c3ab 100755
--- a/codecs/codec_lpc10.c
+++ b/codecs/codec_lpc10.c
@@ -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;
diff --git a/codecs/codec_mp3_d.c b/codecs/codec_mp3_d.c
index c056e1102..09215ddd7 100755
--- a/codecs/codec_mp3_d.c
+++ b/codecs/codec_mp3_d.c
@@ -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;
diff --git a/codecs/codec_ulaw.c b/codecs/codec_ulaw.c
index 2d0a06155..d536bf052 100755
--- a/codecs/codec_ulaw.c
+++ b/codecs/codec_ulaw.c
@@ -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;
diff --git a/codecs/lpc10/lpc10.h b/codecs/lpc10/lpc10.h
index ef7d4eeac..314e2e35f 100755
--- a/codecs/lpc10/lpc10.h
+++ b/codecs/lpc10/lpc10.h
@@ -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);