traverso-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Traverso-commit] traverso/src/core AudioClipList.cpp AudioClipLi...


From: Remon Sijrier
Subject: [Traverso-commit] traverso/src/core AudioClipList.cpp AudioClipLi...
Date: Mon, 19 Nov 2007 11:09:40 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Remon Sijrier <r_sijrier>       07/11/19 11:09:40

Removed files:
        src/core       : AudioClipList.cpp AudioClipList.h 

Log message:
        bye bye now :)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/core/AudioClipList.cpp?cvsroot=traverso&r1=1.2&r2=0
http://cvs.savannah.gnu.org/viewcvs/traverso/src/core/AudioClipList.h?cvsroot=traverso&r1=1.2&r2=0

Patches:
Index: AudioClipList.cpp
===================================================================
RCS file: AudioClipList.cpp
diff -N AudioClipList.cpp
--- AudioClipList.cpp   12 Nov 2007 18:52:13 -0000      1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,91 +0,0 @@
-/*
-    Copyright (C) 2005-2007 Remon Sijrier 
- 
-    This file is part of Traverso
- 
-    Traverso is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
- 
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
- 
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA.
- 
-    $Id: AudioClipList.cpp,v 1.2 2007/11/12 18:52:13 r_sijrier Exp $
-*/
-
-#include "AudioClipList.h"
-
-// Always put me below _all_ includes, this is needed
-// in case we run with memory leak detection enabled!
-#include "Debugger.h"
-
-AudioClip * AudioClipList::get_last( )
-{
-       if (!size()) {
-               return 0;
-       }
-       
-       if (size() == 1) {
-               return (AudioClip*)begin();
-       }
-       
-       AudioProcessingItem* item = begin();
-       AudioProcessingItem* result = item;
-       
-       while (item) {
-               item = item->next;
-               if (item) {
-                       result = item;
-               }
-       }
-               
-       return (AudioClip*)result;
-}
-
-// Untested functions, which aren't in use anyways...
-// AudioClip * AudioClipList::next( AudioClip * clip )
-// {
-//     AudioProcessingItem* item = begin();
-//     while(item) {
-//             AudioClip* c = (AudioClip*)item;
-//             if (clip == c) {
-//                     return (AudioClip*)c->next;
-//             }
-//             item = item->next;
-//     }
-//     
-//         return (AudioClip*) 0;
-// }
-// 
-// AudioClip * AudioClipList::prev( AudioClip * clip )
-// {
-//     if (size() <= 1) {
-//             return 0;
-//     }
-//     
-//     AudioProcessingItem* item = begin();
-//     AudioProcessingItem* prev = item;
-//     item = item->next;
-//     
-//     while (item) {
-//             AudioClip* c = (AudioClip*)item;
-//             if (clip == c) {
-//                     return (AudioClip*)prev;
-//             }
-//             prev = item;
-//             item = item->next;
-//     }
-//     
-//     return (AudioClip*) 0;
-// }
-
-
-//eof
-

Index: AudioClipList.h
===================================================================
RCS file: AudioClipList.h
diff -N AudioClipList.h
--- AudioClipList.h     12 Nov 2007 18:52:13 -0000      1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,78 +0,0 @@
-/*
-    Copyright (C) 2005-2007 Remon Sijrier 
- 
-    This file is part of Traverso
- 
-    Traverso is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
- 
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
- 
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA.
- 
-    $Id: AudioClipList.h,v 1.2 2007/11/12 18:52:13 r_sijrier Exp $
-*/
-
-#ifndef AUDIOCLIPLIST_H
-#define AUDIOCLIPLIST_H
-
-#include "APILinkedList.h"
-#include "AudioClip.h"
-
-class AudioClipList : public APILinkedList
-{
-
-public:
-       AudioClipList() : APILinkedList() {}
-        ~AudioClipList() {}
-
-        void add_clip(AudioClip* clip);
-        int remove_clip(AudioClip* clip);
-//         AudioClip* next(AudioClip* clip);
-//         AudioClip* prev(AudioClip* clip);
-
-        AudioClip* get_last();
-};
-
-
-inline void AudioClipList::add_clip( AudioClip * clip )
-{
-       AudioProcessingItem* item = begin();
-       AudioProcessingItem* after = 0;
-       while(item) {
-               AudioClip* c = (AudioClip*)item;
-               if(c->get_track_start_location() < 
clip->get_track_start_location()) {
-                       after = c;
-               }
-               item = item->next;
-       }
-       
-       if(!after) {
-//             printf("prepending clip\n");
-               prepend(clip);
-       } else {
-//             AudioClip* c = ((AudioClip*)after);
-//             printf("appending clip\n after: %d, clip %d\n", 
c->get_track_start_location().to_frame(44100), 
clip->get_track_start_location().to_frame(44100));
-               add_after(after, clip);
-       }
-}
-
-
-inline int AudioClipList::remove_clip( AudioClip * clip )
-{
-       return remove(clip);
-}
-
-
-#endif
-
-//eof
-
-




reply via email to

[Prev in Thread] Current Thread [Next in Thread]