[Audacity-devel] Re: .lof code--a few needed details
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: David M. <di...@an...> - 2003-02-18 01:17:03
|
Dominic, Now, since AudacityProject::Import() is not static, which instance of AudacityProject do I use to call Import? Because I'm including my .cpp/.h files before *gAudacityProject is declared, calling it by gAudacityProject->Import() doesn't seem to work. Thanks for your other tips, by the way. Once I get the import to work I'll finally get this thing to compile...lol Dave --On Sunday, February 16, 2003 5:48 PM -0800 aud...@li... wrote: >> // **TODO calls the function that opens each file (.wav, .mp3, .lof, >> // etc.) **Note: only done first if offset and strech can be >> specified // after file opened; otherwise open, offset, and stretch >> happen within >> // same function**) > > Call AudacityProject::Import with each filename. Afterwards, call > GetTracks to get the most recent tracks that were imported and change > their offset. (Count the number of tracks before and after each > import; that's a safe enough way to figure out what was just added, > I guess...) What's "stretch"? > > Alternatively, you could copy the code in AudacityProject::Import > that calls the global Importer class, and you could have it import > the files and return the results back to you. You could then apply > stretch, etc. and then add the new tracks to the project. > > - Dominic |