annotate runner/MultiplexedReader.h @ 350:f09defd7040b

Bitbucket -> Sourcehut, and subrepo update
author Chris Cannam
date Fri, 30 Aug 2019 12:05:12 +0100
parents ba3c0e70b5dd
children d8fb9e977aea
rev   line source
Chris@106 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@106 2
Chris@106 3 /*
Chris@106 4 Sonic Annotator
Chris@106 5 A utility for batch feature extraction from audio files.
Chris@106 6 Mark Levy, Chris Sutton and Chris Cannam, Queen Mary, University of London.
Chris@106 7 Copyright 2007-2014 QMUL.
Chris@106 8
Chris@106 9 This program is free software; you can redistribute it and/or
Chris@106 10 modify it under the terms of the GNU General Public License as
Chris@106 11 published by the Free Software Foundation; either version 2 of the
Chris@106 12 License, or (at your option) any later version. See the file
Chris@106 13 COPYING included with this distribution for more information.
Chris@106 14 */
Chris@106 15
Chris@106 16 #ifndef _MULTIPLEXED_READER_H_
Chris@106 17 #define _MULTIPLEXED_READER_H_
Chris@106 18
Chris@106 19 #include "data/fileio/AudioFileReader.h"
Chris@106 20
Chris@106 21 #include <QString>
Chris@106 22 #include <QList>
Chris@106 23
Chris@107 24 class MultiplexedReader : public AudioFileReader
Chris@106 25 {
Chris@106 26 Q_OBJECT
Chris@106 27
Chris@106 28 public:
Chris@107 29 // I take ownership of readers
Chris@106 30 MultiplexedReader(QList<AudioFileReader *> readers);
Chris@107 31 virtual ~MultiplexedReader();
Chris@106 32
Chris@258 33 virtual QString getError() const override { return m_error; }
Chris@258 34 virtual bool isQuicklySeekable() const override { return m_quicklySeekable; }
Chris@106 35
Chris@334 36 virtual QString getTitle() const override { return ""; }
Chris@334 37 virtual QString getMaker() const override { return ""; }
Chris@334 38
Chris@290 39 virtual floatvec_t getInterleavedFrames
Chris@258 40 (sv_frame_t start, sv_frame_t count) const override;
Chris@106 41
Chris@258 42 virtual int getDecodeCompletion() const override;
Chris@106 43
Chris@258 44 virtual bool isUpdating() const override;
Chris@106 45
Chris@106 46 protected:
Chris@107 47 QString m_error;
Chris@107 48 bool m_quicklySeekable;
Chris@107 49 QList<AudioFileReader *> m_readers;
Chris@106 50 };
Chris@106 51
Chris@106 52 #endif