really fixed bitrate display

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@751 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
josh-w 2010-02-28 01:54:29 +00:00
parent 69116bbc1b
commit 6c4e00ccd0

View File

@ -105,7 +105,7 @@ void input_vgmstream::get_info(file_info & p_info,abort_callback & p_abort ) {
p_info.info_set_int("channels", channels);
p_info.info_set_int("bitspersample",16);
p_info.info_set("encoding","lossless");
p_info.info_set_bitrate((samplerate * 16 * channels) >> 10);
p_info.info_set_bitrate((samplerate * 16 * channels) / 1000);
p_info.set_length(((double)length_in_ms)/1000);
}