[ardour-dev] Creating sound files

Paul Davis paul at linuxaudiosystems.com
Mon Jun 4 08:53:27 PDT 2007


On Mon, 2007-06-04 at 11:49 -0400, Jesse Chappell wrote:
> On 6/4/07, John Emmas <johne53 at tiscali.co.uk> wrote:
> 
> > Hmmm... so, given an XML state file and a bunch of audio clips that are
> > currently embedded within an AAF file, how will the session be able to find
> > the audio?  I've assumed that the audio would need to be copied to a folder
> > where Ardour can find it...?
> 
> Yes, you will want to write the audio clips to disk using libsndfile
> in this case.  As Paul mentioned, you can check out SndFileSource
> (libs/ardour/sndfilesource.cc) for an example, or look at the examples
> that come with libsndfile source code itself.

two extra points:

 1) for files that are supposed to be a *part* of the session, i.e. you
want to "pretend" that they were captured as part of the recording
process, the path that is used to specify the file is NOT absolute (i.e.
it does not begin with / (or on windows system [A-Z]:). this indicates
that the file should be locatable within ardour's usual searched
directories, such as the one i named. for files that have an existence
outside the session (for whatever reason: they could be part of sample
libraries, or you just want to leave them present in the original
location that <other-DAW> put them in, or something else), the path
specification must be absolute.

2) there is no reason to write small parts of existing AAF files to a
new file. just specify the entire AAF file as a source, and later a
region that corresponds to the required data.

--p





More information about the Ardour-Dev mailing list