"frequency: %dHz\n"
"channels: %d\n"
"duration: %s\n"
+ "seconds_total: %lu\n"
"num_played: %d\n"
"last_played: %s\n"
"tag info: %s\n",
afhi->frequency,
afhi->channels,
duration_buf,
+ afhi->seconds_total,
afsi->num_played,
last_played_time,
afhi->info_string
case SI_OFFSET:
stat_task->offset_seconds = atoi(line + ilen + 1);
break;
- case SI_LENGTH:
+ case SI_SECONDS_TOTAL:
stat_task->length_seconds = atoi(line + ilen + 1);
break;
case SI_STREAM_START:
}
gettimeofday(&now, NULL);
ret = make_message(
- "%s:%zu\n" "%s:%s\n" "%s:%lu\n"
+ "%s:%zu\n" "%s:%s\n"
"%s:%s\n" "%s:%s\n" "%s:%s\n"
"%s:%li\n" "%s:%s\n"
"%s:%s\n" "%s:%lu.%lu\n" "%s:%lu.%lu\n"
"%s:%s\n" "%s\n",
status_item_list[SI_FILE_SIZE], nmmd->size / 1024,
status_item_list[SI_MTIME], mtime,
- status_item_list[SI_LENGTH], nmmd->afd.afhi.seconds_total,
status_item_list[SI_BASENAME], basename ? basename : "(none)",
status_item_list[SI_STATUS], status,
d[SI_AFS_MODE].align = CENTER;
d[SI_AFS_MODE].x = 0;
d[SI_AFS_MODE].y = 77;
- d[SI_AFS_MODE].len = 100;
+ d[SI_AFS_MODE].len = 50;
+
+ d[SI_DURATION].prefix = "";
+ d[SI_DURATION].postfix = "";
+ d[SI_DURATION].fg = COLOR_YELLOW;
+ d[SI_DURATION].bg = COLOR_BLACK;
+ d[SI_DURATION].align = CENTER;
+ d[SI_DURATION].x = 50;
+ d[SI_DURATION].y = 77;
+ d[SI_DURATION].len = 50;
+
d[SI_ATTRIBUTES].prefix = "";
d[SI_ATTRIBUTES].postfix = "";
SI_AUDIO_INFO3, SI_AFS_MODE, SI_ATTRIBUTES,
SI_DIRECTORY, SI_DECODER_FLAGS, SI_AUDIOD_STATUS,
SI_PLAY_TIME, SI_UPTIME, SI_OFFSET,
- SI_LENGTH, SI_STREAM_START, SI_CURRENT_TIME,
+ SI_SECONDS_TOTAL, SI_STREAM_START, SI_CURRENT_TIME,
SI_AUDIOD_UPTIME, SI_IMAGE_ID, SI_LYRICS_ID,
+ SI_DURATION,
NUM_STAT_ITEMS
};
[SI_UPTIME] = "uptime",
[SI_OFFSET] = "offset",
- [SI_LENGTH] = "length",
+ [SI_SECONDS_TOTAL] = "seconds_total",
[SI_STREAM_START] = "stream_start",
[SI_CURRENT_TIME] = "current_time",
[SI_AUDIOD_UPTIME] = "audiod_uptime",
[SI_IMAGE_ID] = "image_id",
- [SI_LYRICS_ID] = "lyrics_id"
+ [SI_LYRICS_ID] = "lyrics_id",
+ [SI_DURATION] = "duration"
};
static void dump_stat_client_list(void)