comparison 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
comparison
equal deleted inserted replaced
80:8739096929dd 81:f277a171749d
14 */ 14 */
15 15
16 #include "PlayParameters.h" 16 #include "PlayParameters.h"
17 17
18 #include <iostream> 18 #include <iostream>
19
20 QString
21 PlayParameters::toXmlString(QString indent,
22 QString extraAttributes) const
23 {
24 QString s;
25 s += indent;
26 s += QString("<playParameters mute=\"%1\" pan=\"%2\" gain=\"%3\" pluginId=\"%4\" %6")
27 .arg(m_playMuted ? "true" : "false")
28 .arg(m_playPan)
29 .arg(m_playGain)
30 .arg(m_playPluginId)
31 .arg(extraAttributes);
32 if (m_playPluginConfiguration != "") {
33 s += ">\n " + indent + m_playPluginConfiguration
34 + indent + "</playParameters>\n";
35 } else {
36 s += "/>\n";
37 }
38 return s;
39 }
19 40
20 void 41 void
21 PlayParameters::setPlayMuted(bool muted) 42 PlayParameters::setPlayMuted(bool muted)
22 { 43 {
23 std::cerr << "PlayParameters: setPlayMuted(" << muted << ")" << std::endl; 44 std::cerr << "PlayParameters: setPlayMuted(" << muted << ")" << std::endl;