new screen: music visualizer

This commit is contained in:
Andrzej Rybczak
2009-08-28 00:38:29 +02:00
parent bc1a8a2d1a
commit 75f9f840f7
11 changed files with 276 additions and 2 deletions

View File

@@ -117,6 +117,7 @@ void DefaultKeys(ncmpcpp_keys &keys)
keys.PlaylistEditor[0] = '6';
keys.TagEditor[0] = '7';
keys.Outputs[0] = '8';
keys.Visualizer[0] = '9';
keys.Clock[0] = '0';
keys.Stop[0] = 's';
keys.Pause[0] = 'P';
@@ -187,6 +188,7 @@ void DefaultKeys(ncmpcpp_keys &keys)
keys.PlaylistEditor[1] = 270;
keys.TagEditor[1] = 271;
keys.Outputs[1] = 272;
keys.Visualizer[1] = 273;
keys.Clock[1] = 274;
keys.Stop[1] = null_key;
keys.Pause[1] = null_key;
@@ -369,6 +371,8 @@ void ReadKeys(ncmpcpp_keys &keys)
GetKeys(key, keys.TagEditor);
else if (key.find("key_outputs ") != std::string::npos)
GetKeys(key, keys.Outputs);
else if (key.find("key_music_visualizer ") != std::string::npos)
GetKeys(key, keys.Visualizer);
else if (key.find("key_clock ") != std::string::npos)
GetKeys(key, keys.Clock);
else if (key.find("key_stop ") != std::string::npos)
@@ -496,6 +500,11 @@ void ReadConfiguration(ncmpcpp_config &conf)
conf.mpd_music_dir = v + "/";
}
}
if (cl.find("visualizer_fifo_path") != std::string::npos)
{
if (!v.empty())
conf.visualizer_fifo_path = v;
}
else if (cl.find("mpd_port") != std::string::npos)
{
if (StrToInt(v))