everything related to duct tape audio suite (dtas)
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [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%]

* Re: [PATCH] player: automatically pause if last sink dies
  2019-11-02 21:16  7% ` [PATCH] player: automatically pause if last sink dies Eric Wong
@ 2019-11-10  7:36  7%   ` Rene Maurer
  0 siblings, 0 replies; 3+ results
From: Rene Maurer @ 2019-11-10  7:36 UTC (permalink / raw)
  To: Eric Wong; +Cc: dtas-all

Eric Wong <e@80x24.org> wrote:
> Attempting to play (and fail) every song in the queue or
> tracklist is not ideal when a the USB/HDMI cable to the sound
> device gets unplugged by accident.
>
> When tee-ing to multiple sinks, we will still gracefully continue
> if one goes dead and there are remaining sinks.

I have tried it with different USB soundcards. After an interruption the
player goes to pause. When the cable is plugged in again, the player
stays in pause until <dtas-ctl play> is executed.

Thank you very much.


^ permalink raw reply	[relevance 7%]

* [PATCH] player: automatically pause if last sink dies
  @ 2019-11-02 21:16  7% ` Eric Wong
  2019-11-10  7:36  7%   ` Rene Maurer
  0 siblings, 1 reply; 3+ results
From: Eric Wong @ 2019-11-02 21:16 UTC (permalink / raw)
  To: Rene Maurer; +Cc: dtas-all

Attempting to play (and fail) every song in the queue or
tracklist is not ideal when a the USB/HDMI cable to the sound
device gets unplugged by accident.

When tee-ing to multiple sinks, we will still gracefully continue
if one goes dead and there are remaining sinks.

Suggested-by: Rene Maurer
Link: https://80x24.org/dtas-all/874l0kb9qm.fsf@loco10.cumparsita.ch/
---
 lib/dtas/player.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/dtas/player.rb b/lib/dtas/player.rb
index 37f2c96..61d29d2 100644
--- a/lib/dtas/player.rb
+++ b/lib/dtas/player.rb
@@ -282,7 +282,7 @@ def sink_death(sink, status)
     if deleted[0]
       warn("#{sink.name} died unexpectedly: #{status.inspect}")
       deleted.each { |t| drop_target(t) }
-      __current_drop unless @targets[0]
+      do_pause unless @targets[0]
       return # sink stays dead if it died unexpectedly
     end
 
@@ -451,7 +451,7 @@ def __current_drop(src = @current)
   # pull data from sink_buf into @targets, source feeds into sink_buf
   def sink_iter
     wait_iter = broadcast_iter(@sink_buf, @targets)
-    __current_drop if nil == wait_iter # sink error, stop source
+    do_pause if nil == wait_iter # sink error, stop source
     return wait_iter if @current
 
     # no source left to feed sink_buf, drain the remaining data


^ permalink raw reply	[relevance 7%]

Results 1-3 of 3 | reverse | sort options + mbox downloads above
-- links below jump to the message on this page --
2019-10-07 20:07     sound card interruptions Rene Maurer
2019-11-02 21:16  7% ` [PATCH] player: automatically pause if last sink dies Eric Wong
2019-11-10  7:36  7%   ` Rene Maurer
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 inbox:

	../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).