Mercurial > hg > svcore
comparison base/PlayParameters.cpp @ 865:9196cff56abe tonioni
SV file compatibility etc for sample stuff
| author | Chris Cannam |
|---|---|
| date | Tue, 07 Jan 2014 15:49:39 +0000 |
| parents | 1f98e28f70c6 |
| children | 3a3541b357fe |
comparison
equal
deleted
inserted
replaced
| 864:6d07bcc844a1 | 865:9196cff56abe |
|---|---|
| 62 .arg(m_playMuted ? "true" : "false") | 62 .arg(m_playMuted ? "true" : "false") |
| 63 .arg(m_playPan) | 63 .arg(m_playPan) |
| 64 .arg(m_playGain) | 64 .arg(m_playGain) |
| 65 .arg(m_playSampleId) | 65 .arg(m_playSampleId) |
| 66 .arg(extraAttributes); | 66 .arg(extraAttributes); |
| 67 stream << "/>\n"; | 67 |
| 68 stream << ">\n"; | |
| 69 | |
| 70 if (m_playSampleId != "") { | |
| 71 // for backward compatibility | |
| 72 stream << indent << " "; | |
| 73 stream << QString("<plugin identifier=\"%1\" program=\"%2\"/>\n") | |
| 74 .arg("sample_player") | |
| 75 .arg(m_playSampleId); | |
| 76 } | |
| 77 | |
| 78 stream << indent << "</playparameters>\n"; | |
| 68 } | 79 } |
| 69 | 80 |
| 70 void | 81 void |
| 71 PlayParameters::setPlayMuted(bool muted) | 82 PlayParameters::setPlayMuted(bool muted) |
| 72 { | 83 { |
| 113 m_playSampleId = id; | 124 m_playSampleId = id; |
| 114 emit playSampleIdChanged(id); | 125 emit playSampleIdChanged(id); |
| 115 emit playParametersChanged(); | 126 emit playParametersChanged(); |
| 116 } | 127 } |
| 117 } | 128 } |
| 118 | |
| 119 void | |
| 120 PlayParameters::setPlayPluginConfiguration(QString configuration) | |
| 121 { | |
| 122 //!!! need to parse out sample id from e.g. configuration == | |
| 123 //!!! <plugin program="piano"/> | |
| 124 /* | |
| 125 if (m_playPluginConfiguration != configuration) { | |
| 126 m_playPluginConfiguration = configuration; | |
| 127 // cerr << "PlayParameters(" << this << "): setPlayPluginConfiguration to \"" << configuration << "\"" << endl; | |
| 128 emit playPluginConfigurationChanged(configuration); | |
| 129 emit playParametersChanged(); | |
| 130 } | |
| 131 */ | |
| 132 } | |
| 133 | |
| 134 |
