annotate base/FrameTimer.h @ 997:2104ea2204d2

Separate out stdout ability (not all writers that support one-file will necessarily want to support it, e.g. for binary formats)
author Chris Cannam
date Mon, 13 Oct 2014 10:56:16 +0100
parents e06f03013f46
children 2f49be7d4264
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@932 28 virtual int getFrame() const = 0;
Chris@567 29 };
Chris@567 30
Chris@567 31 #endif