summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2022-04-10 02:26:02 +0200
committerAidan MacDonald <amachronic@protonmail.com>2022-04-17 11:32:13 -0400
commit6f5af8e53cd19bdc57481703179ebe498873e014 (patch)
treeeffbfcfd236c9ed9783db0410be11b25b102e6a9 /apps
parentc4156b1909175cd74154fa4217be053c1180ae9c (diff)
downloadrockbox-6f5af8e53cd19bdc57481703179ebe498873e014.tar.gz
rockbox-6f5af8e53cd19bdc57481703179ebe498873e014.zip
Add Codec to Track Info screen
Change-Id: Ieec0e49d0b5e1ca14fa828a510edf30d548969b2
Diffstat (limited to 'apps')
-rw-r--r--apps/screens.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/screens.c b/apps/screens.c
index 2d3a521a88..5588f36c2a 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -382,6 +382,7 @@ static const int id3_headers[]=
382 LANG_ID3_YEAR, 382 LANG_ID3_YEAR,
383 LANG_ID3_LENGTH, 383 LANG_ID3_LENGTH,
384 LANG_ID3_PLAYLIST, 384 LANG_ID3_PLAYLIST,
385 LANG_RECORDING_FORMAT,
385 LANG_ID3_BITRATE, 386 LANG_ID3_BITRATE,
386 LANG_ID3_FREQUENCY, 387 LANG_ID3_FREQUENCY,
387 LANG_ID3_TRACK_GAIN, 388 LANG_ID3_TRACK_GAIN,
@@ -604,6 +605,14 @@ static const char * id3_get_or_speak_info(int selected_item, void* data,
604 talk_number(info->playlist_amount, true); 605 talk_number(info->playlist_amount, true);
605 } 606 }
606 break; 607 break;
608 case LANG_RECORDING_FORMAT:
609 if (id3->codectype >= AFMT_NUM_CODECS)
610 return NULL;
611 snprintf(buffer, buffer_len, "%s", audio_formats[id3->codectype].label);
612 val=buffer;
613 if(say_it)
614 talk_spell(val, true);
615 break;
607 case LANG_ID3_BITRATE: 616 case LANG_ID3_BITRATE:
608 snprintf(buffer, buffer_len, "%d kbps%s", id3->bitrate, 617 snprintf(buffer, buffer_len, "%d kbps%s", id3->bitrate,
609 id3->vbr ? str(LANG_ID3_VBR) : (const unsigned char*) ""); 618 id3->vbr ? str(LANG_ID3_VBR) : (const unsigned char*) "");