From 55daf14d7904517d3f6bd290c1242ce075f14d12 Mon Sep 17 00:00:00 2001 From: satchit8 Date: Mon, 6 Feb 2017 07:43:03 +0000 Subject: [PATCH] process-sound: handle number of channels != 2 --- src/podcastifier/main.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/podcastifier/main.clj b/src/podcastifier/main.clj index a3447c4..06b8e4c 100644 --- a/src/podcastifier/main.clj +++ b/src/podcastifier/main.clj @@ -156,8 +156,8 @@ sound (if (:->stereo config) (->stereo sound) sound) sound (if (:pan config) (pan sound (:pan config)) sound) sound (fade-sound sound config) - sound (if (:pre-silence config) (append (silence (:pre-silence config) 2) sound) sound) - sound (if (:post-silence config) (append sound (silence (:post-silence config) 2)) sound)] + sound (if (:pre-silence config) (append (silence (:pre-silence config) (channels sound)) sound) sound) + sound (if (:post-silence config) (append sound (silence (:post-silence config) (channels sound))) sound)] sound)) (defn read-sound-file