1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
|
/***************************************************************************
MultiTrackWriter.h - writer for multi-track signals
-------------------
begin : Sat Jun 30 2001
copyright : (C) 2001 by Thomas Eschenbacher
email : Thomas Eschenbacher <thomas.eschenbacher@gmx.de>
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef MULTI_TRACK_WRITER_H
#define MULTI_TRACK_WRITER_H
#include "config.h"
#include "libkwave_export.h"
#include <QtGlobal>
#include <QList>
#include <QVector>
#include <QObject>
#include "libkwave/InsertMode.h"
#include "libkwave/MultiWriter.h"
namespace Kwave
{
class SignalManager;
/**
* A MultiTrackWriter encapsulates a set of <c>TrackWriter</c>s for
* easier use of multi-track signals.
*/
class LIBKWAVE_EXPORT MultiTrackWriter: public Kwave::MultiWriter
{
Q_OBJECT
private:
/** Default constructor */
MultiTrackWriter();
public:
/**
* Constructor
* @param signal_manager reference to a SignalManager
* @param track_list list of track indices
* @param mode specifies where and how to insert
* @param left index of the first sample
* @param right index of the last sample
*/
MultiTrackWriter(Kwave::SignalManager &signal_manager,
const QVector<unsigned int> &track_list,
Kwave::InsertMode mode,
sample_index_t left, sample_index_t right);
/**
* Constructor that opens a set of Writers using the currently
* selected list of tracks and the current selection. If nothing is
* selected, the whole signal will be selected.
*
* @param signal_manager reference to a SignalManager
* @param mode specifies where and how to insert
*/
MultiTrackWriter(Kwave::SignalManager &signal_manager,
Kwave::InsertMode mode);
/** Destructor */
virtual ~MultiTrackWriter() override;
private:
/**
* Intializer, see constructor...
*
* @param signal_manager reference to a SignalManager
* @param track_list array of indices of tracks for reading
* @param mode specifies where and how to insert
* @param left index of the first sample
* @param right index of the last sample
* @internal
*/
bool init(Kwave::SignalManager &signal_manager,
const QVector<unsigned int> &track_list,
Kwave::InsertMode mode,
sample_index_t left, sample_index_t right);
};
}
#endif /* MULTI_TRACK_WRITER_H */
//***************************************************************************
//***************************************************************************
|