Mercurial > hg > svcore
diff base/PlayParameters.cpp @ 81:f277a171749d
* Pull out temporary directory management into its own class
* Make sure playback plugins get a default sample path in their original
play parameters configuration
* Save play parameters to .sv file (we aren't reloading yet though)
author | Chris Cannam |
---|---|
date | Tue, 25 Apr 2006 22:14:43 +0000 |
parents | 7439f1696314 |
children | bf42d8d63885 |
line wrap: on
line diff
--- a/base/PlayParameters.cpp Mon Apr 24 17:06:32 2006 +0000 +++ b/base/PlayParameters.cpp Tue Apr 25 22:14:43 2006 +0000 @@ -17,6 +17,27 @@ #include <iostream> +QString +PlayParameters::toXmlString(QString indent, + QString extraAttributes) const +{ + QString s; + s += indent; + s += QString("<playParameters mute=\"%1\" pan=\"%2\" gain=\"%3\" pluginId=\"%4\" %6") + .arg(m_playMuted ? "true" : "false") + .arg(m_playPan) + .arg(m_playGain) + .arg(m_playPluginId) + .arg(extraAttributes); + if (m_playPluginConfiguration != "") { + s += ">\n " + indent + m_playPluginConfiguration + + indent + "</playParameters>\n"; + } else { + s += "/>\n"; + } + return s; +} + void PlayParameters::setPlayMuted(bool muted) {