Add Codec to Track Info screen

Change-Id: Ieec0e49d0b5e1ca14fa828a510edf30d548969b2
This commit is contained in:
Christian Soffke 2022-04-10 02:26:02 +02:00 committed by Aidan MacDonald
parent c4156b1909
commit 6f5af8e53c

View file

@ -382,6 +382,7 @@ static const int id3_headers[]=
LANG_ID3_YEAR,
LANG_ID3_LENGTH,
LANG_ID3_PLAYLIST,
LANG_RECORDING_FORMAT,
LANG_ID3_BITRATE,
LANG_ID3_FREQUENCY,
LANG_ID3_TRACK_GAIN,
@ -604,6 +605,14 @@ static const char * id3_get_or_speak_info(int selected_item, void* data,
talk_number(info->playlist_amount, true);
}
break;
case LANG_RECORDING_FORMAT:
if (id3->codectype >= AFMT_NUM_CODECS)
return NULL;
snprintf(buffer, buffer_len, "%s", audio_formats[id3->codectype].label);
val=buffer;
if(say_it)
talk_spell(val, true);
break;
case LANG_ID3_BITRATE:
snprintf(buffer, buffer_len, "%d kbps%s", id3->bitrate,
id3->vbr ? str(LANG_ID3_VBR) : (const unsigned char*) "");