annotate data/model/WaveFileModel.h @ 1761:ee7fd2c01d87 by-id

Work on management of alignment-related models
author Chris Cannam
date Fri, 12 Jul 2019 13:57:42 +0100
parents 78fe29adfd16
children
rev   line source
Chris@147 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@147 2
Chris@147 3 /*
Chris@147 4 Sonic Visualiser
Chris@147 5 An audio file viewer and annotation editor.
Chris@147 6 Centre for Digital Music, Queen Mary, University of London.
Chris@202 7 This file copyright 2006 Chris Cannam and QMUL.
Chris@147 8
Chris@147 9 This program is free software; you can redistribute it and/or
Chris@147 10 modify it under the terms of the GNU General Public License as
Chris@147 11 published by the Free Software Foundation; either version 2 of the
Chris@147 12 License, or (at your option) any later version. See the file
Chris@147 13 COPYING included with this distribution for more information.
Chris@147 14 */
Chris@147 15
Chris@1535 16 #ifndef SV_WAVE_FILE_MODEL_H
Chris@1535 17 #define SV_WAVE_FILE_MODEL_H
Chris@316 18
Chris@147 19 #include "RangeSummarisableTimeValueModel.h"
Chris@147 20
Chris@147 21 #include <stdlib.h>
Chris@147 22
Chris@179 23 class WaveFileModel : public RangeSummarisableTimeValueModel
Chris@147 24 {
Chris@147 25 Q_OBJECT
Chris@147 26
Chris@147 27 public:
Chris@1122 28 virtual ~WaveFileModel();
Chris@147 29
Chris@1122 30 virtual sv_frame_t getFrameCount() const = 0;
Chris@1580 31 int getChannelCount() const override = 0;
Chris@1580 32 sv_samplerate_t getSampleRate() const override = 0;
Chris@1580 33 sv_samplerate_t getNativeRate() const override = 0;
Chris@147 34
Chris@1580 35 QString getTitle() const override = 0;
Chris@1580 36 QString getMaker() const override = 0;
Chris@1580 37 QString getLocation() const override = 0;
Chris@179 38
Chris@1580 39 sv_frame_t getStartFrame() const override = 0;
Chris@1725 40 sv_frame_t getTrueEndFrame() const override = 0;
Chris@147 41
Chris@1122 42 virtual void setStartFrame(sv_frame_t startFrame) = 0;
Chris@333 43
Chris@147 44 protected:
Chris@1122 45 WaveFileModel() { } // only accessible from subclasses
Chris@147 46 };
Chris@147 47
Chris@147 48 #endif