dtas 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/Documentation/.gitignore +1 -1
- data/Documentation/GNUmakefile +1 -1
- data/Documentation/dtas-console.txt +1 -1
- data/Documentation/dtas-ctl.txt +1 -1
- data/Documentation/dtas-cueedit.txt +1 -1
- data/Documentation/dtas-enq.txt +1 -1
- data/Documentation/dtas-msinkctl.txt +1 -1
- data/Documentation/dtas-player.txt +1 -1
- data/Documentation/dtas-player_effects.txt +1 -1
- data/Documentation/dtas-player_protocol.txt +3 -3
- data/Documentation/dtas-player_sink_examples.txt +1 -1
- data/Documentation/dtas-sinkedit.txt +1 -1
- data/Documentation/dtas-sourceedit.txt +1 -1
- data/Documentation/dtas-splitfx.txt +1 -1
- data/Documentation/dtas-tl.txt +2 -1
- data/Documentation/dtas-xdelay.txt +1 -1
- data/GIT-VERSION-GEN +2 -2
- data/GNUmakefile +1 -1
- data/HACKING +1 -1
- data/INSTALL +5 -5
- data/README +1 -1
- data/Rakefile +2 -2
- data/TODO +1 -1
- data/bin/dtas-console +18 -3
- data/bin/dtas-ctl +1 -1
- data/bin/dtas-cueedit +1 -3
- data/bin/dtas-enq +2 -3
- data/bin/dtas-msinkctl +1 -1
- data/bin/dtas-partstats +1 -1
- data/bin/dtas-player +3 -4
- data/bin/dtas-sinkedit +1 -1
- data/bin/dtas-sourceedit +1 -1
- data/bin/dtas-splitfx +1 -1
- data/bin/dtas-tl +3 -3
- data/bin/dtas-xdelay +1 -1
- data/dtas-linux.gemspec +1 -1
- data/dtas-mpris.gemspec +1 -1
- data/dtas.gemspec +1 -1
- data/examples/trimfx.sample.yml +2 -5
- 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/compat_rbx.rb +1 -1
- data/lib/dtas/cue_index.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/parse_time.rb +1 -1
- data/lib/dtas/partstats.rb +1 -1
- data/lib/dtas/pipe.rb +1 -1
- data/lib/dtas/player.rb +2 -2
- data/lib/dtas/player/client_handler.rb +5 -5
- 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 +2 -2
- data/lib/dtas/source.rb +1 -1
- data/lib/dtas/source/av.rb +1 -1
- data/lib/dtas/source/av_ff_common.rb +1 -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/splitfx.rb +1 -1
- data/lib/dtas/state_file.rb +1 -1
- data/lib/dtas/tracklist.rb +1 -1
- data/lib/dtas/trimfx.rb +64 -3
- data/lib/dtas/unix_accepted.rb +3 -1
- data/lib/dtas/unix_client.rb +2 -2
- data/lib/dtas/unix_server.rb +8 -2
- data/lib/dtas/util.rb +1 -1
- data/lib/dtas/writable_iter.rb +1 -1
- data/lib/dtas/xs.rb +2 -2
- data/perl/dtas-graph +1 -1
- data/test/covshow.rb +1 -1
- data/test/helper.rb +24 -3
- data/test/player_integration.rb +1 -1
- data/test/test_buffer.rb +1 -1
- data/test/test_env.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_splitfx.rb +8 -12
- data/test/test_tracklist.rb +1 -1
- data/test/test_trimfx.rb +33 -2
- data/test/test_unixserver.rb +1 -1
- data/test/test_util.rb +1 -1
- metadata +3 -5
- data/lib/dtas/fadefx.rb +0 -32
- data/test/test_fadefx.rb +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6de1257eadc11120286b1beb71f6aef077a46c7
|
4
|
+
data.tar.gz: 8e9d46f0a73b1bfb601bbe34b1ebac7978edb6bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32d01a19f47d8d1ee8c65d127032c923b726fdf91f4d46ef22655189fd2d4066920de7474b76d976955a8cc268a7a10851222e425c097d6feccddc2bb63e9b7e
|
7
|
+
data.tar.gz: 808dd9c0c49a85bef423a1ee3d9e6a18a117f07d91a91e2ca44fee370dcb62a37dd1efc1439c850d07bef80954ffd601f4876272f1890d1b69af09155d26b93e
|
data/.gitignore
CHANGED
data/Documentation/.gitignore
CHANGED
data/Documentation/GNUmakefile
CHANGED
@@ -59,7 +59,7 @@ No subscription is necessary to post to the mailing list.
|
|
59
59
|
|
60
60
|
# COPYRIGHT
|
61
61
|
|
62
|
-
Copyright 2013, Eric Wong <
|
62
|
+
Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
|
63
63
|
License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
|
64
64
|
|
65
65
|
# SEE ALSO
|
data/Documentation/dtas-ctl.txt
CHANGED
@@ -66,7 +66,7 @@ No subscription is necessary to post to the mailing list.
|
|
66
66
|
|
67
67
|
# COPYRIGHT
|
68
68
|
|
69
|
-
Copyright 2013, Eric Wong <
|
69
|
+
Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
|
70
70
|
License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
|
71
71
|
|
72
72
|
# SEE ALSO
|
@@ -27,7 +27,7 @@ No subscription is necessary to post to the mailing list.
|
|
27
27
|
|
28
28
|
# COPYRIGHT
|
29
29
|
|
30
|
-
Copyright 2013, Eric Wong <
|
30
|
+
Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
|
31
31
|
License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
|
32
32
|
|
33
33
|
# SEE ALSO
|
data/Documentation/dtas-enq.txt
CHANGED
@@ -32,7 +32,7 @@ No subscription is necessary to post to the mailing list.
|
|
32
32
|
|
33
33
|
# COPYRIGHT
|
34
34
|
|
35
|
-
Copyright 2013, Eric Wong <
|
35
|
+
Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
|
36
36
|
License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
|
37
37
|
|
38
38
|
# SEE ALSO
|
@@ -48,7 +48,7 @@ No subscription is necessary to post to the mailing list.
|
|
48
48
|
|
49
49
|
# COPYRIGHT
|
50
50
|
|
51
|
-
Copyright 2013, Eric Wong <
|
51
|
+
Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
|
52
52
|
License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
|
53
53
|
|
54
54
|
# SEE ALSO
|
@@ -113,7 +113,7 @@ No subscription is necessary to post to the mailing list.
|
|
113
113
|
|
114
114
|
# COPYRIGHT
|
115
115
|
|
116
|
-
Copyright 2013, Eric Wong <
|
116
|
+
Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
|
117
117
|
License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
|
118
118
|
|
119
119
|
# SEE ALSO
|
@@ -52,5 +52,5 @@ No subscription is necessary to post to the mailing list.
|
|
52
52
|
|
53
53
|
# COPYRIGHT
|
54
54
|
|
55
|
-
Copyright 2013, Eric Wong <
|
55
|
+
Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
|
56
56
|
License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
|
@@ -22,7 +22,7 @@ shell in disguise, after all.
|
|
22
22
|
|
23
23
|
Protocol feedback greatly appreciated email me at
|
24
24
|
|
25
|
-
|
25
|
+
e@80x24.org
|
26
26
|
|
27
27
|
*********************************************************
|
28
28
|
|
@@ -252,7 +252,7 @@ Commands here should be alphabetized according to `LC_ALL=C sort'
|
|
252
252
|
the track list
|
253
253
|
|
254
254
|
* tl get [TRACKIDS]
|
255
|
-
returns a list of TRACKIDS mapped to filenames.
|
255
|
+
returns a list of TRACKIDS mapped to shell-escaped filenames.
|
256
256
|
|
257
257
|
* tl goto TRACKID [TIMESTAMP] - plays the given TRACKID
|
258
258
|
An optional timestamp may be added to prevent playing the
|
@@ -277,5 +277,5 @@ No subscription is necessary to post to the mailing list.
|
|
277
277
|
|
278
278
|
# COPYRIGHT
|
279
279
|
|
280
|
-
Copyright 2013, Eric Wong <
|
280
|
+
Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
|
281
281
|
License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
|
@@ -73,7 +73,7 @@ No subscription is necessary to post to the mailing list.
|
|
73
73
|
|
74
74
|
# COPYRIGHT
|
75
75
|
|
76
|
-
Copyright 2013, Eric Wong <
|
76
|
+
Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
|
77
77
|
License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
|
78
78
|
|
79
79
|
# SEE ALSO
|
@@ -44,7 +44,7 @@ No subscription is necessary to post to the mailing list.
|
|
44
44
|
|
45
45
|
# COPYRIGHT
|
46
46
|
|
47
|
-
Copyright 2013, Eric Wong <
|
47
|
+
Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
|
48
48
|
License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
|
49
49
|
|
50
50
|
# SEE ALSO
|
@@ -51,7 +51,7 @@ No subscription is necessary to post to the mailing list.
|
|
51
51
|
|
52
52
|
# COPYRIGHT
|
53
53
|
|
54
|
-
Copyright 2013, Eric Wong <
|
54
|
+
Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
|
55
55
|
License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
|
56
56
|
|
57
57
|
# SEE ALSO
|
@@ -163,7 +163,7 @@ For reference, the "opusenc" default target is implemented as follows:
|
|
163
163
|
|
164
164
|
# COPYRIGHT
|
165
165
|
|
166
|
-
Copyright 2013, Eric Wong <
|
166
|
+
Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
|
167
167
|
License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
|
168
168
|
|
169
169
|
# SEE ALSO
|
data/Documentation/dtas-tl.txt
CHANGED
@@ -24,6 +24,7 @@ client).
|
|
24
24
|
* current-id - display the TRACKID of the current track
|
25
25
|
"NONE" if not playing
|
26
26
|
* cat - display a newline-delimited list of TRACK_ID=PATH output
|
27
|
+
Note: this is shell-escaped, multibyte characters may not show up properly.
|
27
28
|
* clear - remove all tracks from the tracklist
|
28
29
|
* goto TRACKID [POS] - play TRACKID immediately, optionally seek to POS
|
29
30
|
TRACKID may be looked up via cat, and POS should be a timestamp in
|
@@ -69,7 +70,7 @@ No subscription is necessary to post to the mailing list.
|
|
69
70
|
|
70
71
|
# COPYRIGHT
|
71
72
|
|
72
|
-
Copyright 2013, Eric Wong <
|
73
|
+
Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
|
73
74
|
License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
|
74
75
|
|
75
76
|
# SEE ALSO
|
@@ -67,7 +67,7 @@ No subscription is necessary to post to the mailing list.
|
|
67
67
|
|
68
68
|
# COPYRIGHT
|
69
69
|
|
70
|
-
Copyright 2013, Eric Wong <
|
70
|
+
Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
|
71
71
|
License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
|
72
72
|
|
73
73
|
# SEE ALSO
|
data/GIT-VERSION-GEN
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# Copyright (C) 2013, Eric Wong <
|
2
|
+
# Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
CONSTANT = "DTAS::VERSION"
|
5
5
|
RVF = "lib/dtas/version.rb"
|
6
6
|
GVF = "GIT-VERSION-FILE"
|
7
|
-
DEF_VER = "v0.
|
7
|
+
DEF_VER = "v0.8.0"
|
8
8
|
vn = DEF_VER
|
9
9
|
|
10
10
|
# First see if there is a version file (included in release tarballs),
|
data/GNUmakefile
CHANGED
data/HACKING
CHANGED
@@ -22,5 +22,5 @@ No subscription is necessary to post to the mailing list.
|
|
22
22
|
|
23
23
|
# COPYRIGHT
|
24
24
|
|
25
|
-
Copyright 2013, Eric Wong <
|
25
|
+
Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
|
26
26
|
License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
|
data/INSTALL
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Uncommon for audio software, dtas is implemented in Ruby.
|
2
2
|
|
3
|
-
The latest stable release of Ruby is recommended, currently 2.
|
3
|
+
The latest stable release of Ruby is recommended, currently 2.1.3.
|
4
4
|
However, Ruby 1.9.3 should work, too. Older versions of Ruby are not
|
5
5
|
recommended.
|
6
6
|
|
@@ -40,10 +40,10 @@ For future upgrades of dtas (upgrades to dtas-linux will be infrequent)
|
|
40
40
|
|
41
41
|
Grab the latest tarball from our HTTP site:
|
42
42
|
|
43
|
-
http://dtas.80x24.org/
|
43
|
+
http://dtas.80x24.org/2014/dtas-0.8.0.tar.gz
|
44
44
|
|
45
|
-
$ tar zxvf dtas-0.
|
46
|
-
$ cd dtas-0.
|
45
|
+
$ tar zxvf dtas-0.8.0.tar.gz
|
46
|
+
$ cd dtas-0.8.0
|
47
47
|
$ sudo ruby setup.rb
|
48
48
|
|
49
49
|
GNU/Linux users may optionally install "io_splice" and
|
@@ -61,5 +61,5 @@ No subscription is necessary to post to the mailing list.
|
|
61
61
|
|
62
62
|
# COPYRIGHT
|
63
63
|
|
64
|
-
Copyright 2013, Eric Wong <
|
64
|
+
Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
|
65
65
|
License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
|
data/README
CHANGED
@@ -80,7 +80,7 @@ No subscription is necessary to post to the mailing list.
|
|
80
80
|
|
81
81
|
## Copyright
|
82
82
|
|
83
|
-
Copyright 2013, Eric Wong <
|
83
|
+
Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
|
84
84
|
License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
|
85
85
|
|
86
86
|
dtas is copyrighted Free Software by all contributors, see logs
|
data/Rakefile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2013, Eric Wong <
|
1
|
+
# Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
|
2
2
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
3
3
|
require 'tempfile'
|
4
4
|
include Rake::DSL
|
@@ -23,7 +23,7 @@ task "NEWS" do
|
|
23
23
|
end
|
24
24
|
fp.puts "Unreleased" unless fp.size > 0
|
25
25
|
fp.puts "# COPYRIGHT"
|
26
|
-
bdfl = 'Eric Wong <
|
26
|
+
bdfl = 'Eric Wong <e@80x24.org>'
|
27
27
|
fp.puts "Copyright (C) 2013, #{bdfl} and all contributors"
|
28
28
|
fp.puts "License: GPLv3 or later (http://www.gnu.org/licenses/gpl-3.0.txt)"
|
29
29
|
fp.rewind
|
data/TODO
CHANGED
data/bin/dtas-console
CHANGED
@@ -1,13 +1,17 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# Copyright (C) 2013, Eric Wong <
|
2
|
+
# Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
#
|
5
5
|
# Note: no idea what I'm doing, especially w.r.t. curses
|
6
6
|
require 'dtas/unix_client'
|
7
7
|
require 'dtas/rg_state'
|
8
8
|
require 'dtas/sigevent'
|
9
|
-
require 'curses'
|
10
9
|
require 'yaml'
|
10
|
+
begin
|
11
|
+
require 'curses'
|
12
|
+
rescue LoadError
|
13
|
+
abort "please install the 'curses' RubyGem to use #$0"
|
14
|
+
end
|
11
15
|
|
12
16
|
se = DTAS::Sigevent.new
|
13
17
|
trap(:WINCH) { se.signal }
|
@@ -100,6 +104,9 @@ def rg_string(rg, current)
|
|
100
104
|
rv
|
101
105
|
end
|
102
106
|
|
107
|
+
enc_locale = Encoding.find("locale")
|
108
|
+
$stdout.set_encoding(enc_locale)
|
109
|
+
enc_opts = { undef: :replace, invalid: :replace, replace: '?' }
|
103
110
|
begin
|
104
111
|
Curses.init_screen
|
105
112
|
Curses.nonl
|
@@ -114,7 +121,15 @@ begin
|
|
114
121
|
if current = cur['current']
|
115
122
|
Curses.setpos(lineno += 1, 0)
|
116
123
|
Curses.clrtoeol
|
117
|
-
|
124
|
+
if infile = current['infile']
|
125
|
+
# FS encoding != locale encoding, but we need to display an FS path
|
126
|
+
# name to whatever locale the terminal is encoded to, so force
|
127
|
+
# it and risk mojibake...
|
128
|
+
infile.encode(enc_locale, enc_opts)
|
129
|
+
Curses.addstr(infile)
|
130
|
+
else
|
131
|
+
Curses.addstr(current['command'])
|
132
|
+
end
|
118
133
|
|
119
134
|
elapsed = Time.now.to_f - current['spawn_at']
|
120
135
|
if (nr = cur['current_initial']) && (current_format = current['format'])
|
data/bin/dtas-ctl
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# Copyright (C) 2013, Eric Wong <
|
2
|
+
# Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
require 'dtas/unix_client'
|
5
5
|
|
data/bin/dtas-cueedit
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# Copyright (C) 2013, Eric Wong <
|
2
|
+
# Copyright (C) 2013-2014, Eric Wong <e@80x24.org> 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 'dtas/xs'
|
@@ -24,8 +24,6 @@ def tmpfile(file, suffix)
|
|
24
24
|
end
|
25
25
|
|
26
26
|
ARGV.each do |file|
|
27
|
-
# Unix paths are encoding agnostic
|
28
|
-
file = file.b
|
29
27
|
file =~ /\.flac\z/i or warn "Unsupported suffix, assuming FLAC"
|
30
28
|
tmp = tmpfile(file, '.cue')
|
31
29
|
begin
|
data/bin/dtas-enq
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# Copyright (C) 2013, Eric Wong <
|
2
|
+
# Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
require 'dtas/unix_client'
|
5
5
|
c = DTAS::UNIXClient.new
|
6
6
|
|
7
7
|
ARGV.each do |path|
|
8
|
-
|
9
|
-
path = File.expand_path(path.b)
|
8
|
+
path = File.expand_path(path)
|
10
9
|
res = c.req_ok(%W(enq #{path}))
|
11
10
|
puts "#{path} #{res}"
|
12
11
|
end
|
data/bin/dtas-msinkctl
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# Copyright (C) 2013, Eric Wong <
|
2
|
+
# Copyright (C) 2013-2014, Eric Wong <e@80x24.org> 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 'dtas/unix_client'
|
data/bin/dtas-partstats
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# Copyright (C) 2013, Eric Wong <
|
2
|
+
# Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
# TODO
|
5
5
|
# - option parsing: sox effects, stats effect options
|
data/bin/dtas-player
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# Copyright (C) 2013, Eric Wong <
|
2
|
+
# Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
Thread.abort_on_exception = $stderr.sync = $stdout.sync = true
|
5
5
|
require 'yaml'
|
6
6
|
require 'dtas/player'
|
7
|
-
sock = (ENV["DTAS_PLAYER_SOCK"] ||
|
8
|
-
File.expand_path("~/.dtas/player.sock")).b
|
7
|
+
sock = (ENV["DTAS_PLAYER_SOCK"] || File.expand_path("~/.dtas/player.sock"))
|
9
8
|
state = (ENV["DTAS_PLAYER_STATE"] ||
|
10
|
-
File.expand_path("~/.dtas/player_state.yml"))
|
9
|
+
File.expand_path("~/.dtas/player_state.yml"))
|
11
10
|
[ sock, state ].each do |file|
|
12
11
|
dir = File.dirname(file)
|
13
12
|
next if File.directory?(dir)
|
data/bin/dtas-sinkedit
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# Copyright (C) 2013, Eric Wong <
|
2
|
+
# Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
require 'dtas/edit_client'
|
5
5
|
include DTAS::EditClient
|
data/bin/dtas-sourceedit
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# Copyright (C) 2013, Eric Wong <
|
2
|
+
# Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
require 'dtas/edit_client'
|
5
5
|
include DTAS::EditClient
|
data/bin/dtas-splitfx
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# Copyright (C) 2013, Eric Wong <
|
2
|
+
# Copyright (C) 2013-2014, Eric Wong <e@80x24.org> 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 'optparse'
|
data/bin/dtas-tl
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# Copyright (C) 2013, Eric Wong <
|
2
|
+
# Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
|
3
3
|
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
|
4
4
|
#
|
5
5
|
# WARNING: totally unstable API, use dtas-ctl for scripting (but the protocol
|
@@ -31,7 +31,7 @@ when "clear"
|
|
31
31
|
when "addhead"
|
32
32
|
ARGV.shift
|
33
33
|
ARGV.reverse.each do |path|
|
34
|
-
path = File.expand_path(path
|
34
|
+
path = File.expand_path(path)
|
35
35
|
res = c.req(%W(tl add #{path}))
|
36
36
|
puts "#{path} #{res}"
|
37
37
|
end
|
@@ -40,7 +40,7 @@ when "addtail"
|
|
40
40
|
track_ids = get_track_ids(c)
|
41
41
|
last_id = track_ids.pop
|
42
42
|
ARGV.each do |path|
|
43
|
-
path = File.expand_path(path
|
43
|
+
path = File.expand_path(path)
|
44
44
|
req = %W(tl add #{path})
|
45
45
|
req << last_id.to_s if last_id
|
46
46
|
res = c.req(req)
|