[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Traverso-devel] AudioClip/Source manager
From: |
Jonatan Liljedahl |
Subject: |
Re: [Traverso-devel] AudioClip/Source manager |
Date: |
Wed, 13 Sep 2006 21:51:02 +0200 |
User-agent: |
Thunderbird 1.5 (X11/20051025) |
Remon Sijrier wrote:
> Hi list,
>
>> Nice! Hope I'll see a "source & clip manager" there soon... ;)
>
> cvs has some stuff to make this possible, the commit log:
>
> First commit to accomplish the following:
> * A ReadSource became a single entity of audiofile(s) wether they contain one
> or more channels with one or more real files
> * AudioClip management moved to Project level
> * AudioSourcesManager manages the Clips, and is able to tell how many clips a
> certain ReadSource has
> * ReadSource and AudioClips use reference counting to detect if an instance
> is
> in use, and if an instance was allready in use a copy will be created
>
>
> The updated project file looks now like this:
...
> If I missed anything, please let me know!
Looks good! I don't think you missed anything. Just be sure to get the
behavior right regarding the copying vs. referencing of clips...
I think this is a good model: (from another mail)
* dragging a clip from the clipmgr into a track creates a reference to
it there (not a copy).
* modifying a clip with multiple references creates a copy before the
modification, so that a new clip is created. (the new clip will have
references=1)
* modifying a clip with only one reference (the one you're editing)
changes the clip, no copy is made, so no additional clip is created.
* dragging an audiosource from the clipmgr creates a new clip of the
whole file.
--
/Jonatan -=( http://kymatica.com )=-