/*
- * Copyright (C) 2006-2007 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2006-2008 Andre Noll <maan@systemlinux.org>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
ret = (afhi->chunk_table[afhi->chunks_total] - afhi->chunk_table[0]) * 8; /* bits */
ret += (channels * afhi->seconds_total * 500); /* avoid rounding error */
afhi->bitrate = ret / (channels * afhi->seconds_total * 1000);
- sprintf(afhi->info_string, "audio_file_info1:%lu x %lums, "
- "%uHz, %d channel%s, %ukb/s\n"
- "audio_file_info2:\n"
- "audio_file_info3:\n",
- afhi->chunks_total, tv2ms(&afhi->chunk_tv),
- afhi->frequency, channels, channels == 1? "" : "s", afhi->bitrate
+ sprintf(afhi->info_string, "%s:\n%s:\n%s:\n",
+ status_item_list[SI_AUDIO_FILE_INFO],
+ status_item_list[SI_TAGINFO1],
+ status_item_list[SI_TAGINFO2]
);
tv_scale(20, &afhi->chunk_tv, &afhi->eof_tv);
ret = 1;