{Tag,Song}Print, PlayerCommands: report song duration with milliseconds precision

This commit is contained in:
Max Kellermann
2014-11-25 17:46:43 +01:00
parent 83fd822e8b
commit 70b5a81a29
5 changed files with 22 additions and 4 deletions

View File

@@ -182,6 +182,10 @@ handle_status(Client &client,
player_status.elapsed_time.ToDoubleS(),
player_status.bit_rate);
if (!player_status.total_time.IsNegative())
client_printf(client, "duration: %1.3f\n",
player_status.total_time.ToDoubleS());
if (player_status.audio_format.IsDefined()) {
struct audio_format_string af_string;