/*
- * Copyright (C) 2003-2006 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2003-2007 Andre Noll <maan@systemlinux.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/
-/** \file mp3.c para_server's mp3 audio format handler */
+/** \file mp3_afh.c para_server's mp3 audio format handler */
/*
* This file is based in part on mp3tech.c and mp3tech.h, Copyright (C)
#include "server.cmdline.h"
#include "server.h"
-#include "afs.h"
+#include "vss.h"
#include "afh.h"
#include "error.h"
#include "fd.h"
tv_divide(fcount, &total_time, &af->chunk_tv);
rewind(mp3.file);
PARA_DEBUG_LOG("chunk_time: %lums\n", tv2ms(&af->chunk_tv));
- tv_scale(30, &af->chunk_tv, &af->eof_tv);
+ tv_scale(3, &af->chunk_tv, &af->eof_tv);
PARA_DEBUG_LOG("eof timeout: %lu\n", tv2ms(&af->eof_tv));
return 1;
}
}
static const char* mp3_suffixes[] = {"mp3", NULL};
+
+/**
+ * the init function of the mp3 audio format handler
+ *
+ * \param p pointer to the struct to initialize
+ */
void mp3_init(struct audio_format_handler *p)
{
af = p;