mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-12 01:30:49 +01:00
Use 4 decimal places for time display
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@746 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
parent
cf1bf43a1f
commit
1275135efd
@ -1349,8 +1349,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 (%.2lf seconds)\n"
|
||||
"loop end: %d samples (%.2lf seconds)\n",
|
||||
snprintf(temp,TEMPSIZE,"loop start: %d samples (%.4lf seconds)\n"
|
||||
"loop end: %d samples (%.4lf seconds)\n",
|
||||
vgmstream->loop_start_sample,
|
||||
(double)vgmstream->loop_start_sample/vgmstream->sample_rate,
|
||||
vgmstream->loop_end_sample,
|
||||
@ -1358,7 +1358,7 @@ void describe_vgmstream(VGMSTREAM * vgmstream, char * desc, int length) {
|
||||
concatn(length,desc,temp);
|
||||
}
|
||||
|
||||
snprintf(temp,TEMPSIZE,"stream total samples: %d (%.2lf seconds)\n",
|
||||
snprintf(temp,TEMPSIZE,"stream total samples: %d (%.4lf seconds)\n",
|
||||
vgmstream->num_samples,
|
||||
(double)vgmstream->num_samples/vgmstream->sample_rate);
|
||||
concatn(length,desc,temp);
|
||||
|
@ -232,7 +232,7 @@ int main(int argc, char ** argv) {
|
||||
buf = malloc(BUFSIZE*sizeof(sample)*s->channels);
|
||||
|
||||
len = get_vgmstream_play_samples(loop_count,fade_seconds,fade_delay_seconds,s);
|
||||
if (!play && !adxencd && !oggenc && !batchvar) printf("samples to play: %d (%.2lf seconds)\n",len,(double)len/s->sample_rate);
|
||||
if (!play && !adxencd && !oggenc && !batchvar) printf("samples to play: %d (%.4lf seconds)\n",len,(double)len/s->sample_rate);
|
||||
fade_samples = fade_seconds * s->sample_rate;
|
||||
|
||||
/* slap on a .wav header */
|
||||
|
Loading…
Reference in New Issue
Block a user