}
+/*
static void adsi_clear(struct ast_channel *chan)
{
char buf[256];
adsi_transmit_message(chan, buf, bytes, ADSI_MSG_DISPLAY);
}
+*/
static void adsi_goodbye(struct ast_channel *chan)
{
static char indevname[50] = ALSA_INDEV;
static char outdevname[50] = ALSA_OUTDEV;
+#if 0
static struct timeval lasttime;
+#endif
static int usecnt;
static int needanswer = 0;
} alsa;
+#if 0
static int time_has_passed(void)
{
struct timeval tv;
return -1;
return 0;
}
+#endif
/* Number of buffers... Each is FRAMESIZE/8 ms long. For example
with 160 sample frames, and a buffer size of 3, we have a 60ms buffer,
static int writedev = -1;
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 res;
}
+/*
static void local_destroy(struct local_pvt *p)
{
struct local_pvt *cur, *prev = NULL;
if (!cur)
ast_log(LOG_WARNING, "Unable ot find local '%s@%s' in local list\n", p->exten, p->context);
}
+*/
static int local_hangup(struct ast_channel *ast)
{
return 0;
}
+#if 0
void delete_devices(void)
{
struct skinny_device *d, *dlast;
devices=NULL;
ast_mutex_unlock(&devicelock);
}
+#endif
int reload(void)
{
int freq1, freq2;
float wlen1, wlen2;
float val;
- int x, samples1, samples2, samples=0;
+ int x, samples1, samples2=0, samples=0;
char fn[256];
if (argc < 3) {
fprintf(stderr, "Usage: gensound <name> <freq1> [freq2]\n");
static char *exts = "alaw|al";
+#if 0
/* Returns time in msec since system boot. */
static unsigned long get_time(void)
{
}
return cur * 1000 / sysconf( _SC_CLK_TCK );
}
+#endif
static struct ast_filestream *pcm_open(int fd)
{