const char *audio_format_name(int);
void afh_get_chunk(long unsigned chunk_num, struct afh_info *afhi,
void *map, const char **buf, size_t *len);
+uint32_t afh_get_largest_chunk_size(struct afh_info *afhi);
void afh_get_header(struct afh_info *afhi, void *map, const char **buf, size_t *len);
char *make_taginfo(char *title, char *artist, char *album, char *year,
char *comment);
*len = afhi->chunk_table[chunk_num + 1] - pos;
}
+uint32_t afh_get_largest_chunk_size(struct afh_info *afhi)
+{
+ uint32_t n, largest = 0, *ct = afhi->chunk_table;
+
+ for (n = 1; n <= afhi->chunks_total; n++)
+ largest = PARA_MAX(largest, ct[n] - ct[n - 1]);
+ return largest;
+}
+
/**
* Get the header of an audio file.
*