# HG changeset patch # User Chris Cannam # Date 1236116883 0 # Node ID 635b79462d3ec4af9c1591843f67a8b4d967bb94 # Parent 3f0c9820463608f2111885f913860e28f0b94bd9 * "ffwd-similar" * stop when ffwding to end diff -r 3f0c98204636 -r 635b79462d3e main/OSCHandler.cpp --- 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();