r870: Merge 2.1:
[cinelerra_cv.git] / cinelerra / recordableatracks.C
blobfcf89d42c4fd6ab912e91b5ff786dbc69283bd5b
1 #include "atrack.h"
2 #include "recordableatracks.h"
3 #include "tracks.h"
5 // This is only used for menu effects so use playable tracks instead.
7 RecordableATracks::RecordableATracks(Tracks *tracks)
8  : ArrayList<ATrack*>()
10         Track *current_track;
11         
12         for(current_track = tracks->first; 
13                 current_track; 
14                 current_track = current_track->next)
15         {
16                 if(current_track->record && current_track->data_type == TRACK_AUDIO) 
17                         append((ATrack*)current_track);
18         }