comparison main/OSCHandler.cpp @ 313:635b79462d3e

* "ffwd-similar" * stop when ffwding to end
author Chris Cannam
date Tue, 03 Mar 2009 21:48:03 +0000
parents 3f0c98204636
children 5f22e0bbe4ba e1bde903c65c
comparison
equal deleted inserted replaced
312:3f0c98204636 313:635b79462d3e
165 m_viewManager->setPlaybackFrame(frame); 165 m_viewManager->setPlaybackFrame(frame);
166 166
167 if (play && !m_playSource->isPlaying()) { 167 if (play && !m_playSource->isPlaying()) {
168 m_playSource->play(frame); 168 m_playSource->play(frame);
169 } 169 }
170 }
171
172 } else if (message.getMethod() == "ffwd") {
173
174 if (message.getArgCount() == 1) {
175
176 if (message.getArg(0).canConvert(QVariant::String) &&
177 message.getArg(0).toString() == "similar") {
178
179 ffwdSimilar();
180 }
181 } else {
182
183 ffwd();
184 }
185
186 } else if (message.getMethod() == "rewind") {
187
188 if (message.getArgCount() == 1) {
189
190 if (message.getArg(0).canConvert(QVariant::String) &&
191 message.getArg(0).toString() == "similar") {
192
193 rewindSimilar();
194 }
195 } else {
196
197 rewind();
170 } 198 }
171 199
172 } else if (message.getMethod() == "stop") { 200 } else if (message.getMethod() == "stop") {
173 201
174 if (m_playSource->isPlaying()) m_playSource->stop(); 202 if (m_playSource->isPlaying()) m_playSource->stop();