1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-04 15:50:10 +01:00

Committing patch from bug #794

This commit is contained in:
lllucius
2015-01-04 19:44:54 +00:00
parent 1201c5abe3
commit b9647586af
3 changed files with 50 additions and 19 deletions

View File

@@ -313,12 +313,19 @@ class AUDACITY_DLL_API WaveTrack: public Track {
// to the newly created clip.
WaveClip* CreateClip();
/** @brief Get access to the last clip, or create a clip, if there is not
* already one.
*
* @return a pointer to a WaveClip at the end of the track
*/
WaveClip* GetLastOrCreateClip();
/** @brief Get access to the most recently added clip, or create a clip,
* if there is not already one. THIS IS NOT NECESSARILY RIGHTMOST.
*
* @return a pointer to the most recently added WaveClip
*/
WaveClip* NewestOrNewClip();
/** @brief Get access to the last (rightmost) clip, or create a clip,
* if there is not already one.
*
* @return a pointer to a WaveClip at the end of the track
*/
WaveClip* RightmostOrNewClip();
// Get the linear index of a given clip (-1 if the clip is not found)
int GetClipIndex(WaveClip* clip);