annotate base/FrameTimer.h @ 1832:7c92c644db20

Merge from branch audio-source-refactor. Various changes to memory management for plugins, ring buffers etc, for safer code further up the stack
author Chris Cannam
date Fri, 03 Apr 2020 12:12:02 +0100
parents ad5f892c0c4d
children
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@1581 16 #ifndef SV_FRAME_TIMER_H
Chris@1581 17 #define SV_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