/* PlayProcess - frontend to control an play process Copyright (C) Lumiera.org 2011, Hermann Vosseler This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * *****************************************************/ /** @file play-controller.cpp ** Implementation of the control- / management frontend(s) exposed ** to clients for talking to an ongoing PlayProcess. This includes ** the implementation of lumiera::Play::Controller, exposed directly ** from the Player facade interface. Besides that primary control ** interface, this translation unit also contains the implementation ** for several extended play controllers targeted at special usage ** situations ** ** @see lumiera::DummyPlayer ** @see gui::PlaybackController usage example */ #include "proc/play/play-controller.hpp" #include "proc/play/play-process.hpp" #include "lib/time/timevalue.hpp" //#include //#include //#include namespace lumiera { using lib::time::Time; using lib::time::Duration; using lib::time::TimeSpan; using proc::play::PlayProcess; /* ==== Play::Controller implementation ==== */ /** toggle the play or pause state * of the corresponding PlayProcess */ void Play::Controller::play(bool) { UNIMPLEMENTED ("toggle play/pause state"); } /** switch into scrubbing playback * */ void Play::Controller::scrub(bool) { UNIMPLEMENTED ("scrubbing playback"); } void Play::Controller::adjustSpeed(double) ///< playback speed control { UNIMPLEMENTED ("adjust actual playback speed"); } /** * */ void Play::Controller::go(Time) ///< skip to the given point in time { UNIMPLEMENTED ("jump to given time"); } /** * */ void Play::Controller::controlPlayhead (time::Control