From 7e90760a48a0dcd0e6d7133022ffb1736083dd46 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Mon, 15 Jul 2024 23:33:29 -0400 Subject: [Feature] Playlis to cue plugin generate valid cue files from a playlist uses remarks to store extra id3 info and display and playlist index Change-Id: I00c9f6389445bb601dde6eb8f36157044024f8cb --- lib/rbcodec/metadata/metadata.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/rbcodec/metadata/metadata.c') diff --git a/lib/rbcodec/metadata/metadata.c b/lib/rbcodec/metadata/metadata.c index 28cef46d92..670c37fcfd 100644 --- a/lib/rbcodec/metadata/metadata.c +++ b/lib/rbcodec/metadata/metadata.c @@ -304,6 +304,14 @@ int get_audio_base_codec_type(int type) return base_type; } +const char * get_codec_string(int type) +{ + if (type < 0 || type >= AFMT_NUM_CODECS) + type = AFMT_UNKNOWN; + + return audio_formats[type].label; +} + /* Get the basic audio type */ bool rbcodec_format_is_atomic(int afmt) { -- cgit v1.2.3