* [ANN] dtas 0.9.0 - duct tape audio suite for *nix
@ 2014-12-22 9:26 6% Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2014-12-22 9:26 UTC (permalink / raw)
To: ruby-talk, dtas-all
Free Software command-line tools for audio playback, mastering, and
whatever else related to audio. dtas follows the worse-is-better
philosophy and acts as duct tape to combine existing command-line tools
for flexibility and ease-of-development. dtas is currently implemented
in Ruby (and some embedded shell), but may use other languages in the
future.
Changes:
dtas 0.9.0 - minor features and speedups
The major new feature is '>' and '<' keys are now supported
in the dtas-console interface for dtas-player.
dtas-tl cat" also received a minor speedup for big tracklists
via syscall reductions
shortlog of changes since 0.8.0:
process: update comment for bug workaround
process: update comment for bug workaround #2
compat_onenine: simplify pipe wrapper
tracklist: favor &:sym_to_proc style
dtas-console: '>' and '<' keys for tracklist next/prev
dtas-tl: halve write() syscalls when emitting tracklists
reduce syscalls in recvmsg invocations
doc: flesh out "tl" subcommand docs
The best is yet to come!
* http://dtas.80x24.org/README
* http://dtas.80x24.org/INSTALL
* http://dtas.80x24.org/dtas-player.txt
* http://dtas.80x24.org/NEWS
* git clone git://80x24.org/dtas
* dtas-all@nongnu.org (plain-text only, no HTML mail, please)
* http://80x24.org/dtas-all/
* http://dtas.80x24.org/2014/dtas-0.9.0.tar.gz
SHA-1 edbd256f4653eed70a52ee972e0e7b2e781fdfdf
* http://dtas.80x24.org/2014/dtas-0.9.0.gem
SHA-1 41330a9374a2172482b85f27082a5624b72b30cd
--
EW
^ permalink raw reply [relevance 6%]
* [PATCH] dtas-tl: halve write() syscalls when emitting tracklists
@ 2014-12-22 1:12 7% Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2014-12-22 1:12 UTC (permalink / raw)
To: dtas-all; +Cc: Eric Wong
Notably, this speeds up "dtas-tl cat" output a little bit.
Hrm, Ruby really should be using writev here, we'll need to
investigate at a later date.
---
bin/dtas-tl | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/bin/dtas-tl b/bin/dtas-tl
index 6963108..efffa83 100755
--- a/bin/dtas-tl
+++ b/bin/dtas-tl
@@ -22,18 +22,18 @@ when "cat"
get_track_ids(c).each do |track_id|
res = c.req("tl get #{track_id}")
res.sub!(/\A1 /, '')
- puts res
+ print "#{res}\n"
end
when "clear"
get_track_ids(c).each do |track_id|
- puts "#{track_id} " << c.req("tl remove #{track_id}")
+ print("#{track_id} " << c.req("tl remove #{track_id}") << "\n")
end
when "addhead"
ARGV.shift
ARGV.reverse.each do |path|
path = File.expand_path(path)
res = c.req(%W(tl add #{path}))
- puts "#{path} #{res}"
+ print "#{path} #{res}\n"
end
when "addtail"
ARGV.shift
@@ -44,7 +44,7 @@ when "addtail"
req = %W(tl add #{path})
req << last_id.to_s if last_id
res = c.req(req)
- puts "#{path} #{res}"
+ print "#{path} #{res}\n"
last_id = res if res =~ /\A\d+\z/
end
when "reto"
--
EW
^ permalink raw reply related [relevance 7%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2014-12-22 1:12 7% [PATCH] dtas-tl: halve write() syscalls when emitting tracklists Eric Wong
2014-12-22 9:26 6% [ANN] dtas 0.9.0 - duct tape audio suite for *nix Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/dtas.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).