1
//=========================================================
4
// $Id: wave.h,v 1.2 2001/11/20 15:19:32 muse Exp $
6
// (C) Copyright 1999/2000 Werner Schweer (ws@seh.de)
7
//=========================================================
14
#include <qfileinfo.h>
19
//---------------------------------------------------------
21
//---------------------------------------------------------
26
int _spos; // start sample position in WaveFile
27
int len; // len of clip
32
Clip(SndFile* f, int start, int len);
34
const QString& name() const { return _name; }
35
void setName(const QString& s) { _name = s; }
38
int spos() const { return _spos; }
39
void setSpos(int s) { _spos = s; }
40
SndFile* file() const { return f; }
42
void read(unsigned, float**, int, unsigned, int*, const double);
44
void write(int, Xml&) const;
45
int samples() const { return len; }
46
void setSamples(int s) { len = s; }
47
int references() { return refs; }
50
class ClipList : public std::list<Clip*> {
53
Clip* search(const QString&) const;
54
void write(int, Xml&) const;
55
void add(Clip* clip) { push_back(clip); }
59
typedef ClipList::iterator iClip;
60
typedef ClipList::const_iterator ciClip;