mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-08 07:42:39 +02:00
40 lines
884 B
C
40 lines
884 B
C
/**********************************************************************
|
|
|
|
Audacity: A Digital Audio Editor
|
|
|
|
WaveTrackLocation.h
|
|
|
|
Paul Licameli -- split from WaveTrack.h
|
|
|
|
**********************************************************************/
|
|
|
|
#ifndef __AUDACITY_WAVE_TRACK_LOCATION__
|
|
#define __AUDACITY_WAVE_TRACK_LOCATION__
|
|
|
|
struct WaveTrackLocation {
|
|
|
|
enum LocationType {
|
|
locationCutLine = 1,
|
|
locationMergePoint
|
|
};
|
|
|
|
explicit
|
|
WaveTrackLocation
|
|
(double pos_ = 0.0, LocationType typ_ = locationCutLine,
|
|
int clipidx1_ = -1, int clipidx2_ = -1)
|
|
: pos(pos_), typ(typ_), clipidx1(clipidx1_), clipidx2(clipidx2_)
|
|
{}
|
|
|
|
// Position of track location
|
|
double pos;
|
|
|
|
// Type of track location
|
|
LocationType typ;
|
|
|
|
// Only for typ==locationMergePoint
|
|
int clipidx1; // first clip (left one)
|
|
int clipidx2; // second clip (right one)
|
|
};
|
|
|
|
#endif
|