*/
#include "para.h"
-#include "afh.h"
-#include "server.h"
#include "error.h"
+#include "afh.h"
#include "string.h"
+#include "afs.h"
+#include "server.h"
/** \cond some defines and structs which are only used in this file */
+ header->padding;
}
-static void write_info_str(struct audio_format_info *afi)
+static void write_info_str(struct afh_info *afi)
{
int v = mp3.id3_isvalid;
return;
*fpos = numbytes - 128;
if (strncmp("TAG", (char *) map + *fpos, 3)) {
- PARA_INFO_LOG("%s", "no id3 tag\n");
+ PARA_DEBUG_LOG("%s", "no id3 tag\n");
return;
}
*fpos = numbytes - 125;
}
static int mp3_read_info(unsigned char *map, size_t numbytes,
- struct audio_format_info *afi)
+ struct afh_info *afi)
{
long fl_avg = 0, freq_avg = 0, br_avg = 0;
int ret, len = 0, old_br = -1;
* Read mp3 information from audio file
*/
int mp3_get_file_info(char *map, size_t numbytes,
- struct audio_format_info *afi)
+ struct afh_info *afi)
{
int ret;