From a462961df2088af99e2e815ad60b8d838c9d062d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 28 Dec 2014 00:43:07 +0000 Subject: source/splitfx: restart source on YAML modifications Since splitfx YAML files are intended to be frequently edited and modified by the user, we'll support automatically restarting the source when the user saves changes via their favorite $EDITOR This change is only for Linux users. However, sleepy_penguin supports kqueue nowadays so a patch to support such functionality would be appreciated. --- lib/dtas/source/splitfx.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/dtas/source/splitfx.rb') diff --git a/lib/dtas/source/splitfx.rb b/lib/dtas/source/splitfx.rb index ad9e7c1..a0899f3 100644 --- a/lib/dtas/source/splitfx.rb +++ b/lib/dtas/source/splitfx.rb @@ -3,10 +3,12 @@ require 'yaml' require_relative 'sox' require_relative '../splitfx' +require_relative 'watchable' class DTAS::Source::SplitFX < DTAS::Source::Sox # :nodoc: MAX_YAML_SIZE = 512 * 1024 attr_writer :sox + include DTAS::Source::Watchable if defined?(DTAS::Source::Watchable) SPLITFX_DEFAULTS = SOX_DEFAULTS.merge("tryorder" => 3) -- cgit v1.2.3-24-ge0c7