annotate base/FrameTimer.h @ 808:67003fb58ba4

Merge from branch "qt5". This revision actually builds with Qt4 (late releases) or Qt5, though it will warn on configure with Qt4.
author Chris Cannam
date Tue, 14 May 2013 12:36:05 +0100
parents e6d35670e1df
children e06f03013f46
rev   line source
Chris@567 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@567 2
Chris@567 3 /*
Chris@567 4 Sonic Visualiser
Chris@567 5 An audio file viewer and annotation editor.
Chris@567 6 Centre for Digital Music, Queen Mary, University of London.
Chris@567 7 This file copyright 2009 QMUL.
Chris@567 8
Chris@567 9 This program is free software; you can redistribute it and/or
Chris@567 10 modify it under the terms of the GNU General Public License as
Chris@567 11 published by the Free Software Foundation; either version 2 of the
Chris@567 12 License, or (at your option) any later version. See the file
Chris@567 13 COPYING included with this distribution for more information.
Chris@567 14 */
Chris@567 15
Chris@567 16 #ifndef _FRAME_TIMER_H_
Chris@567 17 #define _FRAME_TIMER_H_
Chris@567 18
Chris@567 19 /**
Chris@567 20 * A trivial interface for things that permit retrieving "the current
Chris@567 21 * frame". Implementations of this interface are used, for example,
Chris@567 22 * for timestamping incoming MIDI events when tapping to MIDI.
Chris@567 23 */
Chris@567 24
Chris@567 25 class FrameTimer
Chris@567 26 {
Chris@567 27 public:
Chris@567 28 virtual unsigned long getFrame() const = 0;
Chris@567 29 };
Chris@567 30
Chris@567 31 #endif