dtas 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Documentation/dtas-player_protocol.txt +8 -0
- data/GIT-VERSION-GEN +1 -1
- data/INSTALL +6 -5
- data/README +3 -2
- data/bin/dtas-console +2 -0
- data/bin/dtas-tl +4 -4
- data/lib/dtas/compat_onenine.rb +1 -1
- data/lib/dtas/process.rb +4 -2
- data/lib/dtas/tracklist.rb +1 -1
- data/lib/dtas/unix_accepted.rb +1 -1
- data/lib/dtas/unix_client.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b0b0d8dd1821f734ace3e87aaa92a223b78ffa7
|
4
|
+
data.tar.gz: 5814678e639f987d9d5fb9331b845fdfebfa58ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 394434abb8864ae92fffea854b42aac8323a1ccbb88b8baec124d2debe55edb06164bc94a31af96eea9b5e1fad3d0be45f3160ae9f88b7364bdef6366b18d1da
|
7
|
+
data.tar.gz: 9cb48221cf82cc5b1789b7b8778e4b3a06b9e5337767157b691a45a45f24a6a70635aebd916a73b4f10935f1fdd67d7b9e6b08d8510439fd888bdbcaea1697d5
|
@@ -248,6 +248,10 @@ Commands here should be alphabetized according to `LC_ALL=C sort'
|
|
248
248
|
currently playing track with the newly-added one.
|
249
249
|
Returns the TRACKID of the newly added track
|
250
250
|
|
251
|
+
* tl current - display the pathname to the currently playing track
|
252
|
+
|
253
|
+
* tl current-id - display the TRACKID of the currently playing track
|
254
|
+
|
251
255
|
* tl remove TRACKID - remove the track with the given TRACKID from
|
252
256
|
the track list
|
253
257
|
|
@@ -258,6 +262,10 @@ Commands here should be alphabetized according to `LC_ALL=C sort'
|
|
258
262
|
An optional timestamp may be added to prevent playing the
|
259
263
|
same part(s) repeated.y
|
260
264
|
|
265
|
+
* tl next - jump to the next track in the tracklist
|
266
|
+
|
267
|
+
* tl prev - jump to the previous track in the tracklist
|
268
|
+
|
261
269
|
* tl repeat [BOOLEAN|1] - show/or change repeat status of the tracklist.
|
262
270
|
With no args, this will show "true", "false", or "1"
|
263
271
|
If set to "1", dtas-player will repeat the current track.
|
data/GIT-VERSION-GEN
CHANGED
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
|
3
|
+
The latest stable release or development snapshot of Ruby is recommended.
|
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/2014/dtas-0.
|
43
|
+
http://dtas.80x24.org/2014/dtas-0.9.0.tar.gz
|
44
44
|
|
45
|
-
$ tar zxvf dtas-0.
|
46
|
-
$ cd dtas-0.
|
45
|
+
$ tar zxvf dtas-0.9.0.tar.gz
|
46
|
+
$ cd dtas-0.9.0
|
47
47
|
$ sudo ruby setup.rb
|
48
48
|
|
49
49
|
GNU/Linux users may optionally install "io_splice" and
|
@@ -56,7 +56,8 @@ GNU/Linux users may optionally install "io_splice" and
|
|
56
56
|
|
57
57
|
Please do not hesitate to send plain-text mail to <dtas-all@nongnu.org>
|
58
58
|
regarding installation and to share your notes/experiences.
|
59
|
-
Mailing list archives available at <ftp://lists.gnu.org/dtas-all
|
59
|
+
Mailing list archives available at <ftp://lists.gnu.org/dtas-all>
|
60
|
+
or <http://80x24.org/dtas-all/>
|
60
61
|
No subscription is necessary to post to the mailing list.
|
61
62
|
|
62
63
|
# COPYRIGHT
|
data/README
CHANGED
@@ -63,7 +63,7 @@ Coming:
|
|
63
63
|
Please use git-format-patch(1) and git-send-email(1) distributed with
|
64
64
|
the git(7) suite for generating and sending patches. Please format
|
65
65
|
pull requests with the git-request-pull(1) script (also distributed
|
66
|
-
with git(7)) and send them via email.
|
66
|
+
with git(7)) and send them via email to <dtas-all@nongnu.org>.
|
67
67
|
|
68
68
|
See http://www.git-scm.com/ for more information on git.
|
69
69
|
|
@@ -75,7 +75,8 @@ appreciated.
|
|
75
75
|
|
76
76
|
Please send plain-text mail to the list at <dtas-all@nongnu.org>\
|
77
77
|
HTML will not be read. dtas is for GUI-phobes, by GUI-phobes.\
|
78
|
-
Mailing list archives available at <ftp://lists.gnu.org/dtas-all
|
78
|
+
Mailing list archives available at <ftp://lists.gnu.org/dtas-all>
|
79
|
+
or <http://80x24.org/dtas-all/>
|
79
80
|
No subscription is necessary to post to the mailing list.
|
80
81
|
|
81
82
|
## Copyright
|
data/bin/dtas-console
CHANGED
@@ -200,6 +200,8 @@ begin
|
|
200
200
|
when "0" then c.req_ok("rg preamp+=1")
|
201
201
|
when "F" then c.req_ok("rg fallback_gain+=1")
|
202
202
|
when "f" then c.req_ok("rg fallback_gain-=1")
|
203
|
+
when ">" then c.req_ok("tl next")
|
204
|
+
when "<" then c.req_ok("tl prev")
|
203
205
|
when " "
|
204
206
|
c.req("play_pause")
|
205
207
|
when "r" # cycle through replaygain modes
|
data/bin/dtas-tl
CHANGED
@@ -22,18 +22,18 @@ when "cat"
|
|
22
22
|
get_track_ids(c).each do |track_id|
|
23
23
|
res = c.req("tl get #{track_id}")
|
24
24
|
res.sub!(/\A1 /, '')
|
25
|
-
|
25
|
+
print "#{res}\n"
|
26
26
|
end
|
27
27
|
when "clear"
|
28
28
|
get_track_ids(c).each do |track_id|
|
29
|
-
|
29
|
+
print("#{track_id} " << c.req("tl remove #{track_id}") << "\n")
|
30
30
|
end
|
31
31
|
when "addhead"
|
32
32
|
ARGV.shift
|
33
33
|
ARGV.reverse.each do |path|
|
34
34
|
path = File.expand_path(path)
|
35
35
|
res = c.req(%W(tl add #{path}))
|
36
|
-
|
36
|
+
print "#{path} #{res}\n"
|
37
37
|
end
|
38
38
|
when "addtail"
|
39
39
|
ARGV.shift
|
@@ -44,7 +44,7 @@ when "addtail"
|
|
44
44
|
req = %W(tl add #{path})
|
45
45
|
req << last_id.to_s if last_id
|
46
46
|
res = c.req(req)
|
47
|
-
|
47
|
+
print "#{path} #{res}\n"
|
48
48
|
last_id = res if res =~ /\A\d+\z/
|
49
49
|
end
|
50
50
|
when "reto"
|
data/lib/dtas/compat_onenine.rb
CHANGED
data/lib/dtas/process.rb
CHANGED
@@ -49,7 +49,8 @@ module DTAS::Process # :nodoc:
|
|
49
49
|
|
50
50
|
pid = begin
|
51
51
|
Process.spawn(env, cmd, opts)
|
52
|
-
rescue Errno::EINTR
|
52
|
+
rescue Errno::EINTR
|
53
|
+
# workaround for older Rubies https://bugs.ruby-lang.org/issues/8770
|
53
54
|
retry
|
54
55
|
end
|
55
56
|
warn [ :spawn, pid, cmd ].inspect if $DEBUG
|
@@ -77,7 +78,8 @@ module DTAS::Process # :nodoc:
|
|
77
78
|
env = env_expand(env, opts)
|
78
79
|
pid = begin
|
79
80
|
Process.spawn(env, *cmd, opts)
|
80
|
-
rescue Errno::EINTR
|
81
|
+
rescue Errno::EINTR
|
82
|
+
# workaround for older Rubies https://bugs.ruby-lang.org/issues/8770
|
81
83
|
retry
|
82
84
|
end
|
83
85
|
w.close
|
data/lib/dtas/tracklist.rb
CHANGED
data/lib/dtas/unix_accepted.rb
CHANGED
data/lib/dtas/unix_client.rb
CHANGED
@@ -38,9 +38,9 @@ class DTAS::UNIXClient # :nodoc:
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def res_wait(timeout = nil)
|
41
|
-
@to_io
|
41
|
+
IO.select([@to_io], nil, nil, timeout)
|
42
42
|
nr = @to_io.nread
|
43
43
|
nr > 0 or raise EOFError, "unexpected EOF from server"
|
44
|
-
@to_io.recvmsg[0]
|
44
|
+
@to_io.recvmsg(nr, 0, 0)[0]
|
45
45
|
end
|
46
46
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dtas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dtas hackers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |-
|
14
14
|
Free Software command-line tools for audio playback, mastering, and
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
version: '0'
|
181
181
|
requirements: []
|
182
182
|
rubyforge_project:
|
183
|
-
rubygems_version: 2.4.
|
183
|
+
rubygems_version: 2.4.5
|
184
184
|
signing_key:
|
185
185
|
specification_version: 4
|
186
186
|
summary: duct tape audio suite for *nix
|