char context[AST_MAX_EXTENSION];
} oss;
-static int time_has_passed()
+static int time_has_passed(void)
{
struct timeval tv;
int ms;
static int autoanswer = 1;
+#if 0
static int calc_loudness(short *frame)
{
int sum = 0;
sum = sum/FRAME_SIZE;
return sum;
}
+#endif
static int cursound = -1;
static int sampsent = 0;
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);
answer_sound();
ast_setstate(c, AST_STATE_UP);
cursound = -1;
+ nosound=0;
return 0;
}