src/gui/streaminfo2.cpp add MP3 info

This commit is contained in:
Jacek Jendrzej
2017-03-14 21:34:08 +01:00
parent f498775647
commit 90c68453a5

View File

@@ -626,7 +626,7 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
*/ */
audioDecoder->getAudioInfo(type, layer, freq, lbitrate, mode); audioDecoder->getAudioInfo(type, layer, freq, lbitrate, mode);
if (type == AUDIO_FMT_MPEG) if (type == AUDIO_FMT_MPEG || type == AUDIO_FMT_MP3)
{ {
const char *mpegmodes[] = const char *mpegmodes[] =
{ {
@@ -636,7 +636,7 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
"single_ch" "single_ch"
}; };
int max_mode = sizeof(mpegmodes) / sizeof(mpegmodes[0]); int max_mode = sizeof(mpegmodes) / sizeof(mpegmodes[0]);
snprintf(buf, sizeof(buf), "MPEG %s (%d)", snprintf(buf, sizeof(buf), "%s %s (%d)",type == AUDIO_FMT_MPEG ? "MPEG":"MP3",
(mode > max_mode) ? "unk" : mpegmodes[mode], (mode > max_mode) ? "unk" : mpegmodes[mode],
freq); freq);
} }