changeset 313:635b79462d3e

* "ffwd-similar" * stop when ffwding to end
author Chris Cannam
date Tue, 03 Mar 2009 21:48:03 +0000
parents 3f0c98204636
children db14b2b3aedd
files main/OSCHandler.cpp
diffstat 1 files changed, 28 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/main/OSCHandler.cpp	Mon Mar 02 14:29:14 2009 +0000
+++ b/main/OSCHandler.cpp	Tue Mar 03 21:48:03 2009 +0000
@@ -169,6 +169,34 @@
             }
         }
 
+    } else if (message.getMethod() == "ffwd") {
+
+        if (message.getArgCount() == 1) {
+
+            if (message.getArg(0).canConvert(QVariant::String) &&
+                message.getArg(0).toString() == "similar") {
+
+                ffwdSimilar();
+            }
+        } else {
+
+            ffwd();
+        }
+
+    } else if (message.getMethod() == "rewind") {
+
+        if (message.getArgCount() == 1) {
+
+            if (message.getArg(0).canConvert(QVariant::String) &&
+                message.getArg(0).toString() == "similar") {
+
+                rewindSimilar();
+            }
+        } else {
+
+            rewind();
+        }
+
     } else if (message.getMethod() == "stop") {
             
         if (m_playSource->isPlaying()) m_playSource->stop();