[LAD] samples/symlinks/sessions

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: LAD <linux-audio-dev@...>
Date: Friday, July 13, 2012 - 2:59 pm

Hi,

My sampler app has Non Session Mangement implemented but is currently
still referring to external files by their original path.

I want to use the symlink method as discussed fairly extensively here
but I'd like to know if there is any recommended strategy for naming
the symlink of a sample.

It could so happen that as far as the filesystem is concerned the only
discerning uniqueness between two samples is in the path (ie
kit1/snare1.wav and kit2/snare1.wav).

I've come up with three possible solutions to this (in my current order
of preference):

1) symlink-to-sample created in a subdir named using a hash* of the
full path to external file

2) painstakingly re-create the full path within the session dir and add
the symlink into that.

3) some horrible text manipulation of the full path (ie replace / with
_) that is bound to fail.

* J. Liles mentioned SHA1 here:
http://linuxaudio.org/mailarchive/lad/2012/3/30/189343

Are there other/better options or disagreements about (1) being a good
choice over the other options I've presented?

cheers,
james.
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] samples/symlinks/sessions, James Morris, (Fri Jul 13, 2:59 pm)
Re: [LAD] samples/symlinks/sessions, David Robillard, (Mon Jul 16, 2:55 am)
Re: [LAD] samples/symlinks/sessions, James Morris, (Mon Jul 16, 8:47 am)
Re: [LAD] samples/symlinks/sessions, David Robillard, (Mon Jul 16, 6:00 pm)
Re: [LAD] samples/symlinks/sessions, James Morris, (Fri Jul 20, 2:31 pm)
Re: [LAD] samples/symlinks/sessions, J. Liles, (Sat Jul 21, 10:17 pm)
Re: [LAD] samples/symlinks/sessions, James Morris, (Sat Jul 21, 10:53 pm)
Re: [LAD] samples/symlinks/sessions, Paul Davis, (Sun Jul 22, 1:54 am)
Re: [LAD] samples/symlinks/sessions, J. Liles, (Sat Jul 21, 11:34 pm)
Re: [LAD] samples/symlinks/sessions, James Morris, (Sun Jul 22, 12:14 am)
Re: [LAD] samples/symlinks/sessions, J. Liles, (Mon Jul 16, 8:10 am)
Re: [LAD] samples/symlinks/sessions, James Morris, (Fri Jul 13, 3:13 pm)
Re: [LAD] samples/symlinks/sessions, renato, (Fri Jul 13, 4:29 pm)
Re: [LAD] samples/symlinks/sessions, James Morris, (Fri Jul 13, 5:24 pm)