Chris@567: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@567: Chris@567: /* Chris@567: Sonic Visualiser Chris@567: An audio file viewer and annotation editor. Chris@567: Centre for Digital Music, Queen Mary, University of London. Chris@567: This file copyright 2009 QMUL. Chris@567: Chris@567: This program is free software; you can redistribute it and/or Chris@567: modify it under the terms of the GNU General Public License as Chris@567: published by the Free Software Foundation; either version 2 of the Chris@567: License, or (at your option) any later version. See the file Chris@567: COPYING included with this distribution for more information. Chris@567: */ Chris@567: Chris@567: #ifndef _FRAME_TIMER_H_ Chris@567: #define _FRAME_TIMER_H_ Chris@567: Chris@567: /** Chris@567: * A trivial interface for things that permit retrieving "the current Chris@567: * frame". Implementations of this interface are used, for example, Chris@567: * for timestamping incoming MIDI events when tapping to MIDI. Chris@567: */ Chris@567: Chris@567: class FrameTimer Chris@567: { Chris@567: public: Chris@932: virtual int getFrame() const = 0; Chris@567: }; Chris@567: Chris@567: #endif