From 0f9bfb784b7bbccf86b7d7d241982ba4e703efd4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 25 Aug 2013 11:40:19 +0000 Subject: preliminary support for avconv/avprobe from libav 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). --- lib/dtas/source/file.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/dtas/source/file.rb') 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 -- cgit v1.2.3-24-ge0c7