dtas 0.1.I → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/Documentation/.gitignore +2 -0
  4. data/Documentation/GNUmakefile +22 -18
  5. data/Documentation/dtas-console.txt +5 -0
  6. data/Documentation/dtas-ctl.txt +5 -0
  7. data/Documentation/dtas-cueedit.txt +5 -0
  8. data/Documentation/dtas-enq.txt +5 -0
  9. data/Documentation/dtas-msinkctl.txt +5 -0
  10. data/Documentation/dtas-player.txt +5 -0
  11. data/Documentation/dtas-player_effects.txt +5 -0
  12. data/Documentation/dtas-player_protocol.txt +31 -1
  13. data/Documentation/dtas-player_sink_examples.txt +51 -0
  14. data/Documentation/dtas-sinkedit.txt +5 -0
  15. data/Documentation/dtas-sourceedit.txt +5 -0
  16. data/Documentation/dtas-xdelay.txt +5 -0
  17. data/Documentation/troubleshooting.txt +5 -0
  18. data/GIT-VERSION-GEN +2 -2
  19. data/GNUmakefile +2 -0
  20. data/HACKING +5 -0
  21. data/INSTALL +26 -21
  22. data/README +5 -5
  23. data/Rakefile +15 -4
  24. data/TODO +5 -0
  25. data/bin/dtas-console +1 -1
  26. data/bin/dtas-ctl +1 -1
  27. data/bin/dtas-cueedit +1 -1
  28. data/bin/dtas-enq +1 -1
  29. data/bin/dtas-msinkctl +1 -1
  30. data/bin/dtas-player +1 -1
  31. data/bin/dtas-sinkedit +1 -1
  32. data/bin/dtas-sourceedit +1 -1
  33. data/bin/dtas-xdelay +1 -1
  34. data/dtas-mpris.gemspec +3 -0
  35. data/lib/dtas.rb +1 -1
  36. data/lib/dtas/buffer.rb +1 -1
  37. data/lib/dtas/buffer/read_write.rb +1 -1
  38. data/lib/dtas/buffer/splice.rb +1 -1
  39. data/lib/dtas/command.rb +1 -1
  40. data/lib/dtas/compat_onenine.rb +1 -1
  41. data/lib/dtas/disclaimer.rb +1 -1
  42. data/lib/dtas/edit_client.rb +1 -1
  43. data/lib/dtas/format.rb +1 -1
  44. data/lib/dtas/pipe.rb +1 -1
  45. data/lib/dtas/player.rb +1 -1
  46. data/lib/dtas/player/client_handler.rb +2 -2
  47. data/lib/dtas/process.rb +1 -1
  48. data/lib/dtas/replaygain.rb +1 -1
  49. data/lib/dtas/rg_state.rb +1 -1
  50. data/lib/dtas/serialize.rb +1 -1
  51. data/lib/dtas/sigevent.rb +1 -1
  52. data/lib/dtas/sigevent/efd.rb +1 -1
  53. data/lib/dtas/sigevent/pipe.rb +1 -1
  54. data/lib/dtas/sink.rb +1 -1
  55. data/lib/dtas/source.rb +1 -1
  56. data/lib/dtas/source/av.rb +1 -1
  57. data/lib/dtas/source/av_ff_common.rb +3 -1
  58. data/lib/dtas/source/cmd.rb +1 -1
  59. data/lib/dtas/source/common.rb +1 -1
  60. data/lib/dtas/source/ff.rb +1 -1
  61. data/lib/dtas/source/file.rb +1 -1
  62. data/lib/dtas/source/mp3gain.rb +1 -1
  63. data/lib/dtas/source/sox.rb +1 -1
  64. data/lib/dtas/state_file.rb +1 -1
  65. data/lib/dtas/unix_accepted.rb +1 -1
  66. data/lib/dtas/unix_client.rb +1 -1
  67. data/lib/dtas/unix_server.rb +1 -1
  68. data/lib/dtas/util.rb +1 -1
  69. data/lib/dtas/writable_iter.rb +1 -1
  70. data/perl/dtas-graph +1 -1
  71. data/pkg.mk +2 -0
  72. data/test/covshow.rb +1 -1
  73. data/test/helper.rb +1 -1
  74. data/test/player_integration.rb +1 -1
  75. data/test/test_buffer.rb +1 -1
  76. data/test/test_format.rb +1 -1
  77. data/test/test_format_change.rb +1 -1
  78. data/test/test_player.rb +1 -1
  79. data/test/test_player_client_handler.rb +1 -1
  80. data/test/test_player_integration.rb +1 -1
  81. data/test/test_process.rb +1 -1
  82. data/test/test_rg_integration.rb +1 -1
  83. data/test/test_rg_state.rb +1 -1
  84. data/test/test_sink.rb +1 -1
  85. data/test/test_sink_pipe_size.rb +1 -1
  86. data/test/test_sink_tee_integration.rb +1 -1
  87. data/test/test_source_av.rb +1 -1
  88. data/test/test_source_sox.rb +1 -1
  89. data/test/test_unixserver.rb +1 -1
  90. data/test/test_util.rb +1 -1
  91. metadata +10 -8
  92. 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([\d\.]+)} =~ tag or next
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("=== #{version} / #{date}\n\n#{subject}\n\n#{body}")
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 = "#{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
@@ -2,3 +2,8 @@
2
2
  Obviously we can't have untrusted users executing arbitrary commands
3
3
 
4
4
  * tests for bin/*
5
+
6
+ # COPYRIGHT
7
+
8
+ Copyright 2013, Eric Wong <normalperson@yhbt.net> and all contributors.\
9
+ License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
@@ -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
@@ -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
 
@@ -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'
@@ -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
@@ -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'
@@ -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'
@@ -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
@@ -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
@@ -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'
@@ -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'
@@ -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 # :nodoc:
5
5
  end
@@ -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
 
@@ -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'
@@ -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'
@@ -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'
@@ -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
@@ -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
@@ -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'
@@ -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'
@@ -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
  require 'io/splice'
@@ -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 == before.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")
@@ -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'
@@ -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
@@ -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
@@ -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 = {})
@@ -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"]
@@ -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
@@ -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
@@ -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'
@@ -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
 
@@ -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
@@ -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'
@@ -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
@@ -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'
@@ -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 '../process'
5
5
 
@@ -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'
@@ -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'
@@ -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'
@@ -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'
@@ -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'
@@ -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
 
@@ -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