lf format specifier doesn't work well in some runtimes (Wine)

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@964 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
halleyscometsw 2011-07-07 15:25:38 +00:00
parent 66b3ca672e
commit 1c2ebea3bf

View File

@ -1570,8 +1570,8 @@ void describe_vgmstream(VGMSTREAM * vgmstream, char * desc, int length) {
concatn(length,desc,temp);
if (vgmstream->loop_flag) {
snprintf(temp,TEMPSIZE,"loop start: %d samples (%.4lf seconds)\n"
"loop end: %d samples (%.4lf seconds)\n",
snprintf(temp,TEMPSIZE,"loop start: %d samples (%.4f seconds)\n"
"loop end: %d samples (%.4f seconds)\n",
vgmstream->loop_start_sample,
(double)vgmstream->loop_start_sample/vgmstream->sample_rate,
vgmstream->loop_end_sample,
@ -1579,7 +1579,7 @@ void describe_vgmstream(VGMSTREAM * vgmstream, char * desc, int length) {
concatn(length,desc,temp);
}
snprintf(temp,TEMPSIZE,"stream total samples: %d (%.4lf seconds)\n",
snprintf(temp,TEMPSIZE,"stream total samples: %d (%.4f seconds)\n",
vgmstream->num_samples,
(double)vgmstream->num_samples/vgmstream->sample_rate);
concatn(length,desc,temp);