Mercurial > hg > svcore
annotate base/FrameTimer.h @ 1190:f6998e304b36 spectrogram-minor-refactor
Comments and naming
author | Chris Cannam |
---|---|
date | Thu, 23 Jun 2016 14:43:00 +0100 |
parents | 2f49be7d4264 |
children | ad5f892c0c4d |
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@1046 | 19 #include "BaseTypes.h" |
Chris@1046 | 20 |
Chris@567 | 21 /** |
Chris@567 | 22 * A trivial interface for things that permit retrieving "the current |
Chris@567 | 23 * frame". Implementations of this interface are used, for example, |
Chris@567 | 24 * for timestamping incoming MIDI events when tapping to MIDI. |
Chris@567 | 25 */ |
Chris@567 | 26 |
Chris@567 | 27 class FrameTimer |
Chris@567 | 28 { |
Chris@567 | 29 public: |
Chris@1046 | 30 virtual sv_frame_t getFrame() const = 0; |
Chris@567 | 31 }; |
Chris@567 | 32 |
Chris@567 | 33 #endif |