summaryrefslogtreecommitdiff
path: root/channels/chan_oss.c
diff options
context:
space:
mode:
authorMatteo Brancaleoni <mbrancaleoni@espia.it>2003-03-02 00:10:45 +0000
committerMatteo Brancaleoni <mbrancaleoni@espia.it>2003-03-02 00:10:45 +0000
commit708c892f574fa92b0054d079713ed9b1ec4d3da7 (patch)
tree8def0ebaf84817fc7450e568c37f1b48643cf0bc /channels/chan_oss.c
parentd76da9c8e8f0cbbecfd10cbcbcfe1286ce77d764 (diff)
dom mar 2 01:10:37 CET 2003
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@628 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_oss.c')
-rwxr-xr-xchannels/chan_oss.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/channels/chan_oss.c b/channels/chan_oss.c
index 083c98d09..f5fcea126 100755
--- a/channels/chan_oss.c
+++ b/channels/chan_oss.c
@@ -103,7 +103,7 @@ static struct chan_oss_pvt {
char context[AST_MAX_EXTENSION];
} oss;
-static int time_has_passed()
+static int time_has_passed(void)
{
struct timeval tv;
int ms;
@@ -134,6 +134,7 @@ static int sounddev = -1;
static int autoanswer = 1;
+#if 0
static int calc_loudness(short *frame)
{
int sum = 0;
@@ -147,6 +148,7 @@ static int calc_loudness(short *frame)
sum = sum/FRAME_SIZE;
return sum;
}
+#endif
static int cursound = -1;
static int sampsent = 0;
@@ -409,7 +411,7 @@ static int soundcard_setinput(int force)
return 1;
}
-static int soundcard_init()
+static int soundcard_init(void)
{
/* Assume it's full duplex for starters */
int fd = open(DEV_DSP, O_RDWR | O_NONBLOCK);
@@ -473,6 +475,7 @@ static int oss_answer(struct ast_channel *c)
answer_sound();
ast_setstate(c, AST_STATE_UP);
cursound = -1;
+ nosound=0;
return 0;
}