everything related to duct tape audio suite (dtas)
 help / color / mirror / code / Atom feed
 Warning: Initial query:
 %22dtas-console: remove unused variables%22
 returned no results, used:
 "dtas-console: remove unused variables"
 instead

Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 0/3] fixup annoying Ruby 2.7.0dev warnings
@ 2019-10-31 10:00  5% Eric Wong
  2019-10-31 10:00  7% ` [PATCH 1/3] dtas-console: remove unused variables Eric Wong
  0 siblings, 1 reply; 3+ results
From: Eric Wong @ 2019-10-31 10:00 UTC (permalink / raw)
  To: dtas-all

Testing Ruby 2.7.0dev reveals more annoying warnings, which
end users (not hackers) would suffer from :<

*sigh*

Eric Wong (3):
  dtas-console: remove unused variables
  dtas-console: pass kwargs as-is to String#encode
  buffer/splice: pass kwargs as-is to tee/splice

 bin/dtas-console          | 11 +++--------
 lib/dtas/buffer/splice.rb | 10 ++++++----
 2 files changed, 9 insertions(+), 12 deletions(-)



^ permalink raw reply	[relevance 5%]

* [PATCH 1/3] dtas-console: remove unused variables
  2019-10-31 10:00  5% [PATCH 0/3] fixup annoying Ruby 2.7.0dev warnings Eric Wong
@ 2019-10-31 10:00  7% ` Eric Wong
  0 siblings, 0 replies; 3+ results
From: Eric Wong @ 2019-10-31 10:00 UTC (permalink / raw)
  To: dtas-all

"ruby -w" will warn on them
---
 bin/dtas-console | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/bin/dtas-console b/bin/dtas-console
index 00b5cd8..877c9c4 100755
--- a/bin/dtas-console
+++ b/bin/dtas-console
@@ -53,8 +53,6 @@ def update_tfmt(prec, tsec)
 events = []
 interval = 1.0 / 10 ** prec_nr
 
-pause = nil
-
 def show_events(lineno, screen, events)
   Curses.setpos(lineno += 1, 0)
   Curses.clrtoeol
@@ -135,7 +133,6 @@ def may_fail(res, events)
     pfmt = cur['format']
     elapsed = samples = 0
     fmt = total = ''
-    paused = false
     if current = cur['current']
       infile = current['infile'] || current['command']
       elapsed = DTAS.now - current['spawn_at']
@@ -150,7 +147,6 @@ def may_fail(res, events)
       end
     elsif cur['paused'] && infile = cur['current_paused']
       fmt = "[paused] (#{fmt_to_s(pfmt)})"
-      paused = true
       infile = infile['command'] if Hash === infile
       if Array === infile
         infile, elapsed = infile
@@ -220,10 +216,9 @@ def may_fail(res, events)
         case event
         when "pause"
           if current
-            pause = current['infile'] || current['command']
+            current['infile'] || current['command']
           end
         when %r{\Afile }
-          pause = nil
         end
         events << "#{Time.now.strftime(tfmt)} #{event}"
         # something happened, refresh current


^ permalink raw reply related	[relevance 7%]

* [ANN] dtas 0.17.0 - duct tape audio suite for *nix
@ 2019-11-14  1:56  5% Eric Wong
  0 siblings, 0 replies; 3+ results
From: Eric Wong @ 2019-11-14  1:56 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.17.0

    dtas-player automatically pauses on sink death (e.g. when an
    external DAC is unplugged), thanks to Rene Maurer for the
    feature suggestion.

    zsh completions are also bundled in the examples/ directory
    thanks to James Rowe.

    There's also a couple of minor bugfixes and documentation
    updates.

    There's also kwarg warning fixes for Ruby 2.7.0dev.  Future
    components will probably use a more stable glue language
    than Ruby, and we already have dtas-graph which is Perl5.

    Eric Wong (11):
          doc: remove inaccurate comment about "GNU-ism"
          doc: update homepage to point to cgit /about/
          dtas-graph: show inode number in hex, too
          dtas-graph: add a short blurb about what it does
          dtas-console: remove unused variables
          dtas-console: pass kwargs as-is to String#encode
          buffer/splice: pass kwargs as-is to tee/splice
          player: automatically pause if last sink dies
          readahead: avoid Array#compact and Array#max on `false'
          doc: use new HTTPS address at lists.gnu.org
          TODO: add a note about using a more stable glue language

    James Rowe (2):
          doc: trivial typo fixes
          Add zsh completion support

* homepage: https://80x24.org/dtas.git/about
* https://80x24.org/dtas/INSTALL
* https://80x24.org/dtas/dtas-player.txt
* https://80x24.org/dtas/NEWS.atom
* git clone https://80x24.org/dtas.git
* dtas-all@nongnu.org (plain-text only, no HTML mail, please)
* mail archives: https://80x24.org/dtas-all/
  nntp://news.public-inbox.org/inbox.comp.audio.dtas
  https://80x24.org/dtas-all/new.atom


^ permalink raw reply	[relevance 5%]

Results 1-3 of 3 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2019-10-31 10:00  5% [PATCH 0/3] fixup annoying Ruby 2.7.0dev warnings Eric Wong
2019-10-31 10:00  7% ` [PATCH 1/3] dtas-console: remove unused variables Eric Wong
2019-11-14  1:56  5% [ANN] dtas 0.17.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).