Support attaching format information to selected color variables

This commit is contained in:
Andrzej Rybczak
2016-12-22 16:31:41 +01:00
parent 9c13827b62
commit a488c2d89d
22 changed files with 492 additions and 175 deletions

View File

@@ -18,9 +18,23 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#include <boost/lexical_cast.hpp>
#include <cassert>
#include "utility/type_conversions.h"
std::string channelsToString(int channels)
{
switch (channels)
{
case 1:
return "Mono";
case 2:
return "Stereo";
default:
return boost::lexical_cast<std::string>(channels);
}
}
NC::Color charToColor(char c)
{
switch (c)

View File

@@ -26,6 +26,8 @@
#include "mutable_song.h"
#include "enums.h"
std::string channelsToString(int channels);
NC::Color charToColor(char c);
std::string tagTypeToString(mpd_tag_type tag);