mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 11:42:27 +00:00
dom mar 2 01:10:37 CET 2003
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@628 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -103,7 +103,7 @@ static struct chan_oss_pvt {
|
|||||||
char context[AST_MAX_EXTENSION];
|
char context[AST_MAX_EXTENSION];
|
||||||
} oss;
|
} oss;
|
||||||
|
|
||||||
static int time_has_passed()
|
static int time_has_passed(void)
|
||||||
{
|
{
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
int ms;
|
int ms;
|
||||||
@@ -134,6 +134,7 @@ static int sounddev = -1;
|
|||||||
|
|
||||||
static int autoanswer = 1;
|
static int autoanswer = 1;
|
||||||
|
|
||||||
|
#if 0
|
||||||
static int calc_loudness(short *frame)
|
static int calc_loudness(short *frame)
|
||||||
{
|
{
|
||||||
int sum = 0;
|
int sum = 0;
|
||||||
@@ -147,6 +148,7 @@ static int calc_loudness(short *frame)
|
|||||||
sum = sum/FRAME_SIZE;
|
sum = sum/FRAME_SIZE;
|
||||||
return sum;
|
return sum;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int cursound = -1;
|
static int cursound = -1;
|
||||||
static int sampsent = 0;
|
static int sampsent = 0;
|
||||||
@@ -409,7 +411,7 @@ static int soundcard_setinput(int force)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int soundcard_init()
|
static int soundcard_init(void)
|
||||||
{
|
{
|
||||||
/* Assume it's full duplex for starters */
|
/* Assume it's full duplex for starters */
|
||||||
int fd = open(DEV_DSP, O_RDWR | O_NONBLOCK);
|
int fd = open(DEV_DSP, O_RDWR | O_NONBLOCK);
|
||||||
@@ -473,6 +475,7 @@ static int oss_answer(struct ast_channel *c)
|
|||||||
answer_sound();
|
answer_sound();
|
||||||
ast_setstate(c, AST_STATE_UP);
|
ast_setstate(c, AST_STATE_UP);
|
||||||
cursound = -1;
|
cursound = -1;
|
||||||
|
nosound=0;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user