[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rockbox-cvs
Subject:    Add Codec to Track Info screen
From:       rockbox-gerrit-noreply--- via rockbox-cvs <rockbox-cvs () lists ! haxx ! se>
Date:       2022-04-17 15:33:27
Message-ID: 202204171533.23HFXRxT2682601 () archos ! rockbox ! org
[Download RAW message or body]

commit 6f5af8e53cd19bdc57481703179ebe498873e014
Author: Christian Soffke <christian.soffke@gmail.com>
Date:   Sun Apr 10 02:26:02 2022 +0200

    Add Codec to Track Info screen
    
    Change-Id: Ieec0e49d0b5e1ca14fa828a510edf30d548969b2

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[]=
     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*) "");
-- 
rockbox-cvs mailing list
rockbox-cvs@lists.haxx.se
https://lists.haxx.se/listinfo/rockbox-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic