comparison base/PlayParameters.cpp @ 82:bf42d8d63885

* Some work on reloading play parameters from file (not quite working yet) * Win32: redirect stderr to console * A bit of menu reorganisation
author Chris Cannam
date Wed, 26 Apr 2006 14:09:55 +0000
parents f277a171749d
children c30728d5625c
comparison
equal deleted inserted replaced
81:f277a171749d 82:bf42d8d63885
21 PlayParameters::toXmlString(QString indent, 21 PlayParameters::toXmlString(QString indent,
22 QString extraAttributes) const 22 QString extraAttributes) const
23 { 23 {
24 QString s; 24 QString s;
25 s += indent; 25 s += indent;
26 s += QString("<playParameters mute=\"%1\" pan=\"%2\" gain=\"%3\" pluginId=\"%4\" %6") 26 s += QString("<playparameters mute=\"%1\" pan=\"%2\" gain=\"%3\" pluginId=\"%4\" %6")
27 .arg(m_playMuted ? "true" : "false") 27 .arg(m_playMuted ? "true" : "false")
28 .arg(m_playPan) 28 .arg(m_playPan)
29 .arg(m_playGain) 29 .arg(m_playGain)
30 .arg(m_playPluginId) 30 .arg(m_playPluginId)
31 .arg(extraAttributes); 31 .arg(extraAttributes);
32 if (m_playPluginConfiguration != "") { 32 if (m_playPluginConfiguration != "") {
33 s += ">\n " + indent + m_playPluginConfiguration 33 s += ">\n " + indent + m_playPluginConfiguration
34 + indent + "</playParameters>\n"; 34 + "\n" + indent + "</playparameters>\n";
35 } else { 35 } else {
36 s += "/>\n"; 36 s += "/>\n";
37 } 37 }
38 return s; 38 return s;
39 } 39 }
88 void 88 void
89 PlayParameters::setPlayPluginConfiguration(QString configuration) 89 PlayParameters::setPlayPluginConfiguration(QString configuration)
90 { 90 {
91 if (m_playPluginConfiguration != configuration) { 91 if (m_playPluginConfiguration != configuration) {
92 m_playPluginConfiguration = configuration; 92 m_playPluginConfiguration = configuration;
93 std::cerr << "PlayParameters(" << this << "): setPlayPluginConfiguration to \"" << configuration.toStdString() << "\"" << std::endl;
93 emit playPluginConfigurationChanged(configuration); 94 emit playPluginConfigurationChanged(configuration);
94 emit playParametersChanged(); 95 emit playParametersChanged();
95 } 96 }
96 } 97 }
97 98