struct audio_file_data {
enum play_mode current_play_mode;
+ char attributes_string[MAXLINE];
int fd;
long score;
struct afs_info afsi;
int ret = get_hash_of_row(aft_row, &aft_hash);
struct afsi_change_event_data aced;
struct osl_object map, chunk_table_obj;
+ char *tmp;
if (ret < 0)
return ret;
ret = load_chunk_info(&chunk_table_obj, &afd->afhi);
if (ret < 0)
goto err;
-
+ ret = get_attribute_text(&afd->afsi.attributes, " ", &tmp);
+ if (ret < 0)
+ goto err;
+ tmp[sizeof(afd->attributes_string) - 1] = '\0';
+ strcpy(afd->attributes_string, tmp); /* OK */
+ free(tmp);
aced.aft_row = aft_row;
aced.old_afsi = &afd->afsi;
afs_event(AFSI_CHANGE, NULL, &aced);
"%s:%zu\n" "%s:%s\n" "%s:%lu\n" "%s:%u\n"
"%s:%s\n" "%s:%s\n" "%s:%s\n" "%s:%s\n"
"%s:%li\n" "%s:%s\n" "%s:%s\n" "%s"
- "%s:%s\n" "%s:%lu.%lu\n" "%s:%lu.%lu\n",
+ "%s:%s\n" "%s:%lu.%lu\n" "%s:%lu.%lu\n" "%s:%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,
(long unsigned)nmmd->stream_start.tv_usec,
status_item_list[SI_CURRENT_TIME],
(long unsigned)now.tv_sec,
- (long unsigned)now.tv_usec
+ (long unsigned)now.tv_usec,
+ status_item_list[SI_ATTRIBUTES], mmd->afd.attributes_string
);
free(bar);
d[SI_AFS_MODE].y = 77;
d[SI_AFS_MODE].len = 100;
- d[SI_DBINFO2].prefix = "";
- d[SI_DBINFO2].postfix = "";
- d[SI_DBINFO2].fg = COLOR_YELLOW;
- d[SI_DBINFO2].bg = COLOR_BLACK;
- d[SI_DBINFO2].align = CENTER;
- d[SI_DBINFO2].x = 0;
- d[SI_DBINFO2].y = 87;
- d[SI_DBINFO2].len = 100;
+ d[SI_ATTRIBUTES].prefix = "";
+ d[SI_ATTRIBUTES].postfix = "";
+ d[SI_ATTRIBUTES].fg = COLOR_YELLOW;
+ d[SI_ATTRIBUTES].bg = COLOR_BLACK;
+ d[SI_ATTRIBUTES].align = CENTER;
+ d[SI_ATTRIBUTES].x = 0;
+ d[SI_ATTRIBUTES].y = 87;
+ d[SI_ATTRIBUTES].len = 100;
d[SI_DBINFO3].prefix = "";
d[SI_DBINFO3].postfix = "";
SI_MTIME, SI_LENGTH_MIN, SI_LENGTH_SEC,
SI_FILE_SIZE, SI_STATUS_FLAGS, SI_FORMAT,
SI_SCORE, SI_AUDIO_INFO1, SI_AUDIO_INFO2,
- SI_AUDIO_INFO3, SI_AFS_MODE, SI_DBINFO2,
+ SI_AUDIO_INFO3, SI_AFS_MODE, SI_ATTRIBUTES,
SI_DBINFO3, SI_DECODER_FLAGS, SI_AUDIOD_STATUS,
SI_PLAY_TIME, SI_UPTIME, SI_OFFSET,
SI_LENGTH, SI_STREAM_START, SI_CURRENT_TIME,
[SI_AUDIO_INFO3] = "audio_file_info3",
[SI_AFS_MODE] = "afs_mode",
- [SI_DBINFO2] = "dbinfo2",
+ [SI_ATTRIBUTES] = "attributes",
[SI_DBINFO3] = "dbinfo3",
[SI_DECODER_FLAGS] = "decoder_flags",