- afi->seconds_total = ov_time_total(&of, -1);
- afi->frequency = vi->rate;
- afi->bitrate = ov_bitrate(&of, 0) / 1000;
- afi->channels = vi->channels;
- afi->chunks_total = ogg_compute_chunk_table(&of, afi, afi->seconds_total);
- sprintf(afi->info_string, "audio_file_info1:%lu x %lu, %ukHz, "
- "%d channels, %ukbps\n"
- "audio_file_info2: \n"
- "audio_file_info3: \n",
- afi->chunks_total, (long unsigned) (chunk_time * 1000 * 1000),
- afi->frequency / 1000, vi->channels, afi->bitrate
- );
- afi->chunk_tv.tv_sec = 0;
- afi->chunk_tv.tv_usec = 250 * 1000;
- tv_scale(3, &afi->chunk_tv, &afi->eof_tv);
+ afhi->seconds_total = ov_time_total(&of, -1);
+ afhi->frequency = vi->rate;
+ afhi->bitrate = ov_bitrate(&of, 0) / 1000;
+ afhi->channels = vi->channels;
+ afhi->chunks_total = ogg_compute_chunk_table(&of, afhi, afhi->seconds_total);
+ afhi->chunk_tv.tv_sec = 0;
+ afhi->chunk_tv.tv_usec = 250 * 1000;
+ ogg_get_vorbis_comments(&of, afhi);