diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-08-25 11:40:19 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-08-25 11:40:19 +0000 |
commit | 0f9bfb784b7bbccf86b7d7d241982ba4e703efd4 (patch) | |
tree | ee8cdbf659457a82ac5d03df77fae8bc00728e68 /lib/dtas/source/file.rb | |
parent | 157b75aa71bb2d9e7140cd72f29451fa234a902a (diff) | |
download | dtas-0f9bfb784b7bbccf86b7d7d241982ba4e703efd4.tar.gz |
avconv is capable of outputting to the .sox format, greatly simplifying our life as it enables us to easily apply sox effects on a per-source file basis. dtas-sourceedit and the "source" protocol commands will need to change to support internal priorities (like sink).
Diffstat (limited to 'lib/dtas/source/file.rb')
-rw-r--r-- | lib/dtas/source/file.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/dtas/source/file.rb b/lib/dtas/source/file.rb index 472cb3d..a66308b 100644 --- a/lib/dtas/source/file.rb +++ b/lib/dtas/source/file.rb @@ -11,9 +11,11 @@ module DTAS::Source::File # :nodoc: attr_reader :infile attr_reader :offset require_relative 'common' # dtas/source/common + require_relative 'mp3gain' include DTAS::Command include DTAS::Process include DTAS::Source::Common + include DTAS::Source::Mp3gain FILE_SIVS = %w(infile comments command env) @@ -60,4 +62,10 @@ module DTAS::Source::File # :nodoc: rv["samples"] = samples rv end + + def replaygain + @rg ||= DTAS::ReplayGain.new(comments) || + DTAS::ReplayGain.new(mp3gain_comments) + end + end |