43 int load(std::string
const& path, int64_t targetsr);
48 int unxor(std::string
const& path);
57 bool operator <(
const struct wav_t& other)
const {
58 return (strcasecmp(this->filename.c_str(),
63 return (this->filename == other.
filename ||
64 this->index == other.
index);
67 wav_t (uint16_t idx = 0) : index (idx), posabsolute (0),
length (0) {}
85 std::vector<midi_ev_t>
midi;
88 return (this->index == other.
index);
92 return (strcasecmp(this->name.c_str(),
93 other.
name.c_str()) < 0);
95 region_t (uint16_t idx = 0) : index (idx), startpos (0), sampleoffset (0),
length (0) {}
105 return (this->index < other.
index);
109 return (this->index == other.
index);
111 track_t (uint16_t idx = 0) : index (idx), playlist (0) {}
115 std::vector<track_t>::const_iterator begin = _tracks.begin();
116 std::vector<track_t>::const_iterator finish = _tracks.end();
117 std::vector<track_t>::const_iterator found;
121 if ((found = std::find(begin, finish, t)) != finish) {
129 std::vector<region_t>::const_iterator begin = _regions.begin();
130 std::vector<region_t>::const_iterator finish = _regions.end();
131 std::vector<region_t>::const_iterator found;
136 if ((found = std::find(begin, finish, r)) != finish) {
144 std::vector<track_t>::const_iterator begin = _miditracks.begin();
145 std::vector<track_t>::const_iterator finish = _miditracks.end();
146 std::vector<track_t>::const_iterator found;
150 if ((found = std::find(begin, finish, t)) != finish) {
158 std::vector<region_t>::const_iterator begin = _midiregions.begin();
159 std::vector<region_t>::const_iterator finish = _midiregions.end();
160 std::vector<region_t>::const_iterator found;
164 if ((found = std::find(begin, finish, r)) != finish) {
172 std::vector<wav_t>::const_iterator begin = _audiofiles.begin();
173 std::vector<wav_t>::const_iterator finish = _audiofiles.end();
174 std::vector<wav_t>::const_iterator found;
178 if ((found = std::find(begin, finish, w)) != finish) {
186 std::vector<region_t>::const_iterator begin = reg.begin();
187 std::vector<region_t>::const_iterator finish = reg.end();
191 if (std::find(begin, finish, r) != finish) {
197 static bool wavexistsin (std::vector<wav_t>
const& wv, uint16_t index) {
198 std::vector<wav_t>::const_iterator begin = wv.begin();
199 std::vector<wav_t>::const_iterator finish = wv.end();
203 if (std::find(begin, finish, w) != finish) {
211 const std::string&
path () {
return _path; }
213 const std::vector<wav_t>&
audiofiles ()
const {
return _audiofiles ; }
214 const std::vector<region_t>&
regions ()
const {
return _regions ; }
215 const std::vector<region_t>&
midiregions ()
const {
return _midiregions ; }
216 const std::vector<track_t>&
tracks ()
const {
return _tracks ; }
217 const std::vector<track_t>&
miditracks ()
const {
return _miditracks ; }
251 bool jumpback(uint32_t *currpos,
unsigned char *buf,
const uint32_t maxoffset,
const unsigned char *needle,
const uint32_t needlelen);
252 bool jumpto(uint32_t *currpos,
unsigned char *buf,
const uint32_t maxoffset,
const unsigned char *needle,
const uint32_t needlelen);
253 bool foundin(std::string
const& haystack, std::string
const& needle);
254 int64_t
foundat(
unsigned char *haystack, uint64_t n,
const char *needle);
PBD::PropertyDescriptor< timecnt_t > length
PBD::PropertyDescriptor< timepos_t > start
bool operator==(const ProcessorSelection &a, const ProcessorSelection &b)
link region and track false waveform clip level