int64_t posabsolute;
int64_t length;
- bool operator <(const struct wav& other) const {
+ bool operator <(const struct wav& other) {
return (strcasecmp(this->filename.c_str(),
other.filename.c_str()) < 0);
}
- bool operator ==(const struct wav& other) const {
+ bool operator ==(const struct wav& other) {
return (this->filename == other.filename ||
this->index == other.index);
}
} region_t;
typedef struct track {
- track ()
- : index (0)
- , playlist (0)
- {
- memset ((void*)®, 0, sizeof(region_t));
- }
-
- track (std::string n, uint16_t i, uint8_t p, region_t *r)
- : name (n)
- , index (i)
- , playlist (p)
- {
- set_region (r);
- }
-
- void set_region (region_t *r) {
- memcpy ((void*)®, (void*)r, sizeof(region_t));
- }
-
std::string name;
uint16_t index;
uint8_t playlist;