#include "server.cmdline.h"
#include "server.h"
#include "afs.h"
-#include "gcc-compat.h"
#include "error.h"
/** \cond some defines and structs which are only used in this file */
};
static int frame_size_index[] = {24000, 72000, 72000};
-static char *mode_text[] = {"stereo", "joint stereo", "dual channel", "mono", "invalid"};
+static const char *mode_text[] = {"stereo", "joint stereo", "dual channel", "mono", "invalid"};
static struct mp3info mp3;
static char mp3buf[8192];
return frequencies[h->version][h->freq];
}
-static char *header_mode(struct mp3header *h)
+static const char *header_mode(struct mp3header *h)
{
if (h->mode > 4)
h->mode = 4; /* invalid */
tv_divide(fcount, &total_time, &af->chunk_tv);
rewind(mp3.file);
PARA_DEBUG_LOG("chunk_time: %lu\n", af->chunk_tv.tv_usec);
- tv_scale(10, &af->chunk_tv, &af->eof_tv);
+ tv_scale(30, &af->chunk_tv, &af->eof_tv);
+ PARA_DEBUG_LOG("eof timeout: %lu\n", tv2ms(&af->eof_tv));
return 1;
}