Add Codec to Track Info screen
Change-Id: Ieec0e49d0b5e1ca14fa828a510edf30d548969b2
This commit is contained in:
parent
c4156b1909
commit
6f5af8e53c
1 changed files with 9 additions and 0 deletions
|
@ -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*) "");
|
||||
|
|
Loading…
Reference in a new issue