src/gui/streaminfo2.cpp add MP3 info

Origin commit data
------------------
Commit: 90c68453a5
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-03-14 (Tue, 14 Mar 2017)
This commit is contained in:
Jacek Jendrzej
2017-03-14 21:34:08 +01:00
parent a61d47369c
commit 36ea8d10e2

View File

@@ -626,7 +626,7 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
*/
audioDecoder->getAudioInfo(type, layer, freq, lbitrate, mode);
if (type == AUDIO_FMT_MPEG)
if (type == AUDIO_FMT_MPEG || type == AUDIO_FMT_MP3)
{
const char *mpegmodes[] =
{
@@ -636,7 +636,7 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
"single_ch"
};
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],
freq);
}