Support attaching format information to selected color variables
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user