dtas 0.1.I → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/Documentation/.gitignore +2 -0
- data/Documentation/GNUmakefile +22 -18
- data/Documentation/dtas-console.txt +5 -0
- data/Documentation/dtas-ctl.txt +5 -0
- data/Documentation/dtas-cueedit.txt +5 -0
- data/Documentation/dtas-enq.txt +5 -0
- data/Documentation/dtas-msinkctl.txt +5 -0
- data/Documentation/dtas-player.txt +5 -0
- data/Documentation/dtas-player_effects.txt +5 -0
- data/Documentation/dtas-player_protocol.txt +31 -1
- data/Documentation/dtas-player_sink_examples.txt +51 -0
- data/Documentation/dtas-sinkedit.txt +5 -0
- data/Documentation/dtas-sourceedit.txt +5 -0
- data/Documentation/dtas-xdelay.txt +5 -0
- data/Documentation/troubleshooting.txt +5 -0
- data/GIT-VERSION-GEN +2 -2
- data/GNUmakefile +2 -0
- data/HACKING +5 -0
- data/INSTALL +26 -21
- data/README +5 -5
- data/Rakefile +15 -4
- data/TODO +5 -0
- data/bin/dtas-console +1 -1
- data/bin/dtas-ctl +1 -1
- data/bin/dtas-cueedit +1 -1
- data/bin/dtas-enq +1 -1
- data/bin/dtas-msinkctl +1 -1
- data/bin/dtas-player +1 -1
- data/bin/dtas-sinkedit +1 -1
- data/bin/dtas-sourceedit +1 -1
- data/bin/dtas-xdelay +1 -1
- data/dtas-mpris.gemspec +3 -0
- data/lib/dtas.rb +1 -1
- data/lib/dtas/buffer.rb +1 -1
- data/lib/dtas/buffer/read_write.rb +1 -1
- data/lib/dtas/buffer/splice.rb +1 -1
- data/lib/dtas/command.rb +1 -1
- data/lib/dtas/compat_onenine.rb +1 -1
- data/lib/dtas/disclaimer.rb +1 -1
- data/lib/dtas/edit_client.rb +1 -1
- data/lib/dtas/format.rb +1 -1
- data/lib/dtas/pipe.rb +1 -1
- data/lib/dtas/player.rb +1 -1
- data/lib/dtas/player/client_handler.rb +2 -2
- data/lib/dtas/process.rb +1 -1
- data/lib/dtas/replaygain.rb +1 -1
- data/lib/dtas/rg_state.rb +1 -1
- data/lib/dtas/serialize.rb +1 -1
- data/lib/dtas/sigevent.rb +1 -1
- data/lib/dtas/sigevent/efd.rb +1 -1
- data/lib/dtas/sigevent/pipe.rb +1 -1
- data/lib/dtas/sink.rb +1 -1
- data/lib/dtas/source.rb +1 -1
- data/lib/dtas/source/av.rb +1 -1
- data/lib/dtas/source/av_ff_common.rb +3 -1
- data/lib/dtas/source/cmd.rb +1 -1
- data/lib/dtas/source/common.rb +1 -1
- data/lib/dtas/source/ff.rb +1 -1
- data/lib/dtas/source/file.rb +1 -1
- data/lib/dtas/source/mp3gain.rb +1 -1
- data/lib/dtas/source/sox.rb +1 -1
- data/lib/dtas/state_file.rb +1 -1
- data/lib/dtas/unix_accepted.rb +1 -1
- data/lib/dtas/unix_client.rb +1 -1
- data/lib/dtas/unix_server.rb +1 -1
- data/lib/dtas/util.rb +1 -1
- data/lib/dtas/writable_iter.rb +1 -1
- data/perl/dtas-graph +1 -1
- data/pkg.mk +2 -0
- data/test/covshow.rb +1 -1
- data/test/helper.rb +1 -1
- data/test/player_integration.rb +1 -1
- data/test/test_buffer.rb +1 -1
- data/test/test_format.rb +1 -1
- data/test/test_format_change.rb +1 -1
- data/test/test_player.rb +1 -1
- data/test/test_player_client_handler.rb +1 -1
- data/test/test_player_integration.rb +1 -1
- data/test/test_process.rb +1 -1
- data/test/test_rg_integration.rb +1 -1
- data/test/test_rg_state.rb +1 -1
- data/test/test_sink.rb +1 -1
- data/test/test_sink_pipe_size.rb +1 -1
- data/test/test_sink_tee_integration.rb +1 -1
- data/test/test_source_av.rb +1 -1
- data/test/test_source_sox.rb +1 -1
- data/test/test_unixserver.rb +1 -1
- data/test/test_util.rb +1 -1
- metadata +10 -8
- data/examples/dtas_state.yml +0 -18
data/Rakefile
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
2
|
+
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
1
3
|
load "./GIT-VERSION-GEN"
|
2
4
|
manifest = "Manifest.txt"
|
3
5
|
gitidx = File.stat(".git/index") rescue nil
|
@@ -22,8 +24,8 @@ if ! File.exist?(manifest) || File.stat(manifest).mtime < gitidx.mtime
|
|
22
24
|
end
|
23
25
|
end
|
24
26
|
File.open("NEWS", "w") do |fp|
|
25
|
-
`git tag -l`.split(/\n/).each do |tag|
|
26
|
-
%r{\Av(
|
27
|
+
`git tag -l`.split(/\n/).reverse.each do |tag|
|
28
|
+
%r{\Av(.+)} =~ tag or next
|
27
29
|
version = $1
|
28
30
|
header, subject, body = `git cat-file tag #{tag}`.split(/\n\n/, 3)
|
29
31
|
header = header.split(/\n/)
|
@@ -31,12 +33,16 @@ if ! File.exist?(manifest) || File.stat(manifest).mtime < gitidx.mtime
|
|
31
33
|
time = Time.at(tagger.split(/ /)[-2].to_i).utc
|
32
34
|
date = time.strftime("%Y-%m-%d")
|
33
35
|
|
34
|
-
fp.write("
|
36
|
+
fp.write("# #{version} / #{date}\n\n#{subject}\n\n#{body}")
|
35
37
|
end
|
36
38
|
fp.flush
|
37
39
|
if fp.size <= 5
|
38
40
|
fp.puts "Unreleased"
|
39
41
|
end
|
42
|
+
|
43
|
+
fp.write("\n# COPYRIGHT\n")
|
44
|
+
fp.puts "Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors"
|
45
|
+
fp.puts "License: GPLv3 or later (http://www.gnu.org/licenses/gpl-3.0.txt)"
|
40
46
|
end
|
41
47
|
end
|
42
48
|
|
@@ -62,6 +68,11 @@ task :rsync_docs do
|
|
62
68
|
dest = ENV["RSYNC_DEST"] || "80x24.org:/srv/dtas/"
|
63
69
|
top = %w(INSTALL NEWS README COPYING)
|
64
70
|
files = []
|
71
|
+
|
72
|
+
# git-set-file-times is distributed with rsync,
|
73
|
+
# on Debian systems: /usr/share/doc/rsync/scripts/git-set-file-times.gz
|
74
|
+
sh("git", "set-file-times", "Documentation")
|
75
|
+
|
65
76
|
Dir['Documentation/*.txt'].to_a.concat(top).each do |txt|
|
66
77
|
gz = "#{txt}.gz"
|
67
78
|
tmp = "#{gz}.#$$"
|
@@ -91,7 +102,7 @@ base = "dtas-#{h.version}"
|
|
91
102
|
task tarball: "pkg/#{base}" do
|
92
103
|
Dir.chdir("pkg") do
|
93
104
|
tgz = "#{base}.tar.gz"
|
94
|
-
tmp = "#{
|
105
|
+
tmp = "#{tgz}.#$$"
|
95
106
|
sh "tar cf - #{base} | gzip -9 > #{tmp}"
|
96
107
|
File.rename(tmp, tgz)
|
97
108
|
end
|
data/TODO
CHANGED
data/bin/dtas-console
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# -*- encoding: binary -*-
|
3
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
3
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
4
4
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
5
5
|
#
|
6
6
|
# Note: no idea what I'm doing, especially w.r.t. curses
|
data/bin/dtas-ctl
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# -*- encoding: binary -*-
|
3
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
3
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
4
4
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
5
5
|
require 'dtas/unix_client'
|
6
6
|
|
data/bin/dtas-cueedit
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# -*- encoding: binary -*-
|
3
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
3
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
4
4
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
5
5
|
require 'tempfile'
|
6
6
|
require 'shellwords'
|
data/bin/dtas-enq
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# -*- encoding: binary -*-
|
3
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
3
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
4
4
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
5
5
|
require 'dtas/unix_client'
|
6
6
|
c = DTAS::UNIXClient.new
|
data/bin/dtas-msinkctl
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# -*- encoding: binary -*-
|
3
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
3
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
4
4
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
5
5
|
require 'yaml'
|
6
6
|
require 'dtas/unix_client'
|
data/bin/dtas-player
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# -*- encoding: binary -*-
|
3
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
3
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
4
4
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
5
5
|
Thread.abort_on_exception = $stderr.sync = $stdout.sync = true
|
6
6
|
require 'yaml'
|
data/bin/dtas-sinkedit
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# -*- encoding: binary -*-
|
3
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
3
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
4
4
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
5
5
|
require 'dtas/edit_client'
|
6
6
|
include DTAS::EditClient
|
data/bin/dtas-sourceedit
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# -*- encoding: binary -*-
|
3
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
3
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
4
4
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
5
5
|
require 'dtas/edit_client'
|
6
6
|
include DTAS::EditClient
|
data/bin/dtas-xdelay
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# -*- encoding: binary -*-
|
3
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
3
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
4
4
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
5
5
|
USAGE = "Usage: #$0 [-x FREQ] [-l] /dev/fd/LO /dev/fd/HI DELAY [DELAY ...]"
|
6
6
|
require 'optparse'
|
data/dtas-mpris.gemspec
CHANGED
@@ -1,4 +1,7 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
+
# Copyright 2013, Eric Wong <normalperson@yhbt.net> and all contributors.
|
3
|
+
# License: GPLv2 or later <http://www.gnu.org/licenses/gpl-2.0.txt>
|
4
|
+
# This is GPLv2+ instead of GPLv3+ because ruby-dbus is LGPLv2.1 (only)
|
2
5
|
Gem::Specification.new do |s|
|
3
6
|
s.name = %q{dtas-mpris}
|
4
7
|
s.version = '0.0.0'
|
data/lib/dtas.rb
CHANGED
data/lib/dtas/buffer.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
require 'io/wait'
|
5
5
|
require 'io/nonblock'
|
data/lib/dtas/buffer/splice.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
require 'io/wait'
|
5
5
|
require 'io/nonblock'
|
data/lib/dtas/command.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
# common code for wrapping SoX/ecasound/... commands
|
5
5
|
require_relative 'serialize'
|
data/lib/dtas/compat_onenine.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
|
5
5
|
# Make Ruby 1.9.3 look like Ruby 2.0.0 to us
|
data/lib/dtas/disclaimer.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
2
|
# :enddoc:
|
3
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
3
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
4
4
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
5
5
|
DTAS_PROGNAME = File.basename($0)
|
6
6
|
DTAS_DISCLAIMER = <<EOF
|
data/lib/dtas/edit_client.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
require 'tempfile'
|
5
5
|
require 'yaml'
|
data/lib/dtas/format.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
# class represents an audio format (type/bits/channels/sample rate/...)
|
5
5
|
require_relative '../dtas'
|
data/lib/dtas/pipe.rb
CHANGED
data/lib/dtas/player.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
require 'yaml'
|
5
5
|
require 'shellwords'
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
module DTAS::Player::ClientHandler # :nodoc:
|
5
5
|
|
@@ -461,7 +461,7 @@ module DTAS::Player::ClientHandler # :nodoc:
|
|
461
461
|
end
|
462
462
|
end
|
463
463
|
after = src.to_state_hash
|
464
|
-
__current_requeue if before != after && @current.class ==
|
464
|
+
__current_requeue if before != after && @current.class == src.class
|
465
465
|
io.emit("OK")
|
466
466
|
else
|
467
467
|
io.emit("ERR unknown source op")
|
data/lib/dtas/process.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
require 'shellwords'
|
5
5
|
require 'io/wait'
|
data/lib/dtas/replaygain.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
#
|
5
5
|
# Represents ReplayGain metadata for a DTAS::Source
|
data/lib/dtas/rg_state.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
#
|
5
5
|
# provides support for generating appropriate effects for ReplayGain
|
data/lib/dtas/serialize.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
module DTAS::Serialize # :nodoc:
|
5
5
|
def ivars_to_hash(ivars, rv = {})
|
data/lib/dtas/sigevent.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
begin
|
5
5
|
raise LoadError, "no eventfd with _DTAS_POSIX" if ENV["_DTAS_POSIX"]
|
data/lib/dtas/sigevent/efd.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
class DTAS::Sigevent < SleepyPenguin::EventFD # :nodoc:
|
5
5
|
include SleepyPenguin
|
data/lib/dtas/sigevent/pipe.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
class DTAS::Sigevent # :nodoc:
|
5
5
|
attr_reader :to_io
|
data/lib/dtas/sink.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
require 'yaml'
|
5
5
|
require_relative '../dtas'
|
data/lib/dtas/source.rb
CHANGED
data/lib/dtas/source/av.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
require_relative '../../dtas'
|
5
5
|
require_relative 'av_ff_common'
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
require_relative '../../dtas'
|
5
5
|
require_relative '../source'
|
@@ -118,6 +118,8 @@ module DTAS::Source::AvFfCommon # :nodoc:
|
|
118
118
|
# file itself, not the decoded output
|
119
119
|
def samples
|
120
120
|
@samples ||= (@duration * @format.rate).round
|
121
|
+
rescue
|
122
|
+
0
|
121
123
|
end
|
122
124
|
|
123
125
|
def to_hsh
|
data/lib/dtas/source/cmd.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
require_relative '../../dtas'
|
5
5
|
require_relative '../source'
|
data/lib/dtas/source/common.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
module DTAS::Source::Common # :nodoc:
|
5
5
|
attr_reader :dst_zero_byte
|
data/lib/dtas/source/ff.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
require_relative '../../dtas'
|
5
5
|
require_relative 'av_ff_common'
|
data/lib/dtas/source/file.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
require_relative '../../dtas'
|
5
5
|
require_relative '../source'
|
data/lib/dtas/source/mp3gain.rb
CHANGED
data/lib/dtas/source/sox.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
require_relative '../../dtas'
|
5
5
|
require_relative '../source'
|
data/lib/dtas/state_file.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
require 'yaml'
|
5
5
|
require 'tempfile'
|
data/lib/dtas/unix_accepted.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
require 'socket'
|
5
5
|
require 'io/wait'
|
data/lib/dtas/unix_client.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
require 'dtas'
|
5
5
|
require 'socket'
|
data/lib/dtas/unix_server.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: binary -*-
|
2
|
-
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net>
|
2
|
+
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
require 'socket'
|
5
5
|
require_relative '../dtas'
|
data/lib/dtas/util.rb
CHANGED
data/lib/dtas/writable_iter.rb
CHANGED