Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

aedit.C

Go to the documentation of this file.
00001 #include "asset.h"
00002 #include "edits.h"
00003 #include "aedit.h"
00004 #include "cache.h"
00005 #include "edl.h"
00006 #include "edlsession.h"
00007 #include "file.h"
00008 #include "filexml.h"
00009 #include "indexfile.h"
00010 #include "mwindow.h"
00011 #include "patch.h"
00012 #include "mainsession.h"
00013 #include "trackcanvas.h"
00014 #include "tracks.h"
00015 
00016 
00017 AEdit::AEdit(EDL *edl, Edits *edits)
00018  : Edit(edl, edits)
00019 {
00020 }
00021 
00022 
00023 
00024 AEdit::~AEdit() { }
00025 
00026 int AEdit::load_properties_derived(FileXML *xml)
00027 {
00028         channel = xml->tag.get_property("CHANNEL", (int32_t)0);
00029         return 0;
00030 }
00031 
00032 // ========================================== editing
00033 
00034 int AEdit::copy_properties_derived(FileXML *xml, int64_t length_in_selection)
00035 {
00036         return 0;
00037 }
00038 
00039 
00040 int AEdit::dump_derived()
00041 {
00042         //printf("      channel %d\n", channel);
00043 }
00044 
00045 
00046 int64_t AEdit::get_source_end(int64_t default_)
00047 {
00048         if(!asset) return default_;   // Infinity
00049 
00050         return (int64_t)((double)asset->audio_length / asset->sample_rate * edl->session->sample_rate + 0.5);
00051 }
00052 

Generated on Sun Jan 8 13:38:49 2006 for Cinelerra-svn by  doxygen 1.4.4