visualizer: add filled wave visualizer
This commit is contained in:
committed by
Andrzej Rybczak
parent
9bab03e4b2
commit
1f2daaa08c
@@ -43,6 +43,18 @@ NC::Color stringToColor(const std::string &color)
|
||||
return result;
|
||||
}
|
||||
|
||||
VisualizerType stringToVisualizerType(const std::string &visualizerType)
|
||||
{
|
||||
VisualizerType result = VisualizerType::Wave;
|
||||
if (visualizerType == "wave")
|
||||
result = VisualizerType::Wave;
|
||||
else if (visualizerType == "spectrum")
|
||||
result = VisualizerType::Spectrum;
|
||||
else if (visualizerType == "wave_filled")
|
||||
result = VisualizerType::WaveFilled;
|
||||
return result;
|
||||
}
|
||||
|
||||
NC::Border stringToBorder(const std::string &border)
|
||||
{
|
||||
NC::Border result = NC::Border::None;
|
||||
|
||||
@@ -24,8 +24,10 @@
|
||||
#include "mpdpp.h"
|
||||
#include "mutable_song.h"
|
||||
#include "window.h"
|
||||
#include "enums.h"
|
||||
|
||||
NC::Color stringToColor(const std::string &color);
|
||||
VisualizerType stringToVisualizerType(const std::string &visualizerType);
|
||||
NC::Border stringToBorder(const std::string &border);
|
||||
|
||||
std::string tagTypeToString(mpd_tag_type tag);
|
||||
|
||||
Reference in New Issue
Block a user