r125: This commit was manufactured by cvs2svn to create tag 'r1_1_7-last'.
[cinelerra_cv/mob.git] / hvirtual / cinelerra / aedit.C
blobbc766be9f246942ade0694eb508a135ec50daf04
1 #include "assets.h"
2 #include "edits.h"
3 #include "aedit.h"
4 #include "cache.h"
5 #include "edl.h"
6 #include "edlsession.h"
7 #include "file.h"
8 #include "filexml.h"
9 #include "indexfile.h"
10 #include "mwindow.h"
11 #include "patch.h"
12 #include "mainsession.h"
13 #include "trackcanvas.h"
14 #include "tracks.h"
17 AEdit::AEdit(EDL *edl, Edits *edits)
18  : Edit(edl, edits)
24 AEdit::~AEdit() { }
26 int AEdit::load_properties_derived(FileXML *xml)
28         channel = xml->tag.get_property("CHANNEL", (int32_t)0);
29         return 0;
32 // ========================================== editing
34 int AEdit::copy_properties_derived(FileXML *xml, int64_t length_in_selection)
36         return 0;
40 int AEdit::dump_derived()
42         //printf("      channel %d\n", channel);
46 int64_t AEdit::get_source_end(int64_t default_)
48         if(!asset) return default_;   // Infinity
50         return (int64_t)((double)asset->audio_length / asset->sample_rate * edl->session->sample_rate + 0.5);