about summary refs log tree commit homepage
path: root/lib/dtas/source/splitfx.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-12-28 00:43:07 +0000
committerEric Wong <e@80x24.org>2014-12-28 01:49:06 +0000
commita462961df2088af99e2e815ad60b8d838c9d062d (patch)
treef60f5b89c44dd2bf33739c4653d815b1bcf254ba /lib/dtas/source/splitfx.rb
parent949dbe07c02919f8f17d7880bc69c3ee683daca4 (diff)
downloaddtas-a462961df2088af99e2e815ad60b8d838c9d062d.tar.gz
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.
Diffstat (limited to 'lib/dtas/source/splitfx.rb')
-rw-r--r--lib/dtas/source/splitfx.rb2
1 files changed, 2 insertions, 0 deletions
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)