[CM] Snd and mp arithmetic

e deleflie edeleflie at gmail.com
Thu Jan 22 04:06:48 PST 2009


All,

I've got an SND script that does sample rate conversion (usually from
44100 to 48000) on multichannel files. Code looks something like this:

                        (src-sound (/ (srate insound) 48000) 1.0 insound 0)
                        (src-sound (/ (srate insound) 48000) 1.0 insound 1)
                        (src-sound (/ (srate insound) 48000) 1.0 insound 2)

I'm running this script on Amazons' EC2 (cloud computing
instance)..... and it barfs .... took me a while to work out that SND
is filling up the /tmp/ directory with enough files that it the
computer has no more room to breath. .... looks like this:

-rw-r--r--  1 amber amber  48032520 2009-01-21 18:22 snd_2166_0.snd
-rw-r--r--  1 amber amber  22974464 2009-01-21 18:23 snd_2166_10.snd
-rw-r--r--  1 amber amber  48032520 2009-01-21 18:22 snd_2166_1.snd
-rw-r--r--  1 amber amber  48032520 2009-01-21 18:23 snd_2166_2.snd
-rw-r--r--  1 amber amber  48032520 2009-01-21 18:23 snd_2166_3.snd
-rw-r--r--  1 amber amber 192129992 2009-01-21 18:23 snd_2166_4.snd
-rw-r--r--  1 amber amber  48032520 2009-01-21 18:23 snd_2166_5.snd
-rw-r--r--  1 amber amber  48032520 2009-01-21 18:23 snd_2166_6.snd
-rw-r--r--  1 amber amber  48032520 2009-01-21 18:23 snd_2166_7.snd
-rw-r--r--  1 amber amber  48032520 2009-01-21 18:23 snd_2166_8.snd
-rw-r--r--  1 amber amber  23068712 2009-01-21 18:23 snd_2166_9.snd

I'm wondering if this is because of the re-sampling? Is there anything
I can do about it? ... what is it doing ... is it swap files or
something? Should the files get deleted (if the process was
successful?)

Etienne



More information about the Cmdist mailing list