display audio duration.

This commit is contained in:
morkt 2015-06-09 02:38:08 +04:00
parent 6e9f5f7378
commit 6195ab25e3

View File

@ -864,8 +864,9 @@ namespace GARbro.GUI
AudioDevice.PlaybackStopped += OnPlaybackStopped;
AudioDevice.Play();
var fmt = CurrentAudio.WaveFormat;
SetResourceText (string.Format ("Playing {0} / {2}bps / {1}Hz", entry.Name,
fmt.SampleRate, sound.SourceBitrate / 1000));
SetResourceText (string.Format ("Playing {0} / {3} / {2}bps / {1}Hz", entry.Name,
fmt.SampleRate, sound.SourceBitrate / 1000,
CurrentAudio.TotalTime.ToString ("m':'ss")));
}
}
catch (Exception X)