about summary refs log tree commit homepage
DateCommit message (Collapse)
2015-12-25doc: various wording fixes and doc enhancements
English grammar is not easy :x While we're at it, dtas-archive.txt is expanded to document things like: http://80x24.org/dtas-all/20150918085401.GA8610@dcvr.yhbt.net/ (bus failure).
2015-12-25enable "frozen_string_literal: true"
While we're in the area, make a wording change from "GPLv3 or later" to "GPL-3.0+", as the latter is favored by SPDX.org
2015-12-20dtas-readahead: use our spawn fix properly
Our spawn fix does not cover singleton dispatch from the Process class; only bareword "function" calls.
2015-12-20mlib: fix update
We cannot use "dirname" in queries, oops :x
2015-12-16mlib: wire up search/find/stats to the UI
Not in any way a stable interface, yet, and still incomplete. This should emulate parts of the mpd protocol which should make it easier to debug and develop.
2015-12-15dtas-tl: add "aac" (add-after-current) command
This can be useful to avoid using the queue internally.
2015-12-15gemspec: require Ruby 1.9.3 at minimum
We've always required Ruby 1.9.3+ might as well put it in the gemspec. Probably in 2016, we'll drop 1.9.3 support and require 2.0+ only.
2015-12-15dtas-tl: "edit" gives sequential track IDs on new tracks
Having sequential track IDs can improve readability, so complicate our code a bit to ensure users get nicer looking track IDs. Followup to commit 90dcf561fd22c8a53c03d97292f86a82e74ca4a3 ('Revert "dtas-tl: simplify existing addtail/addhead while we're at it"')
2015-12-15nodoc internal classes
DTAS does not expose any sort of public API for external users, so it will not be documented using RDoc. Currently all of our documentation is in plain-text or Markdown (only for manpages).
2015-12-15Revert "dtas-tl: simplify existing addtail/addhead while we're at it"
This partially reverts commit 0dde5917fb5135ee3601383c29ffc0490071ea9d. This fixes "addtail" on an empty tracklist and preserves sequential ordering of track IDs, which might make sense for usability.
2015-12-14rg_state: fixup replaygain normalization
Oops, normalization is probably a forgotten feature...
2015-12-14Merge branch '0.12.x-stable'
* 0.12.x-stable: Rakefile: add Atom feed to website
2015-12-14Rakefile: add Atom feed to website 0.12.x-stable
This will hopefully allow readers to follow along with developments more easily.
2015-12-14player: implement software volume control
This is on a linear scale from 0.0 (mute) to 1.0 (no change) This is in the MPRIS spec and mpd as well (scaled to 0-100) This changes dtas-console key bindings (0/9) slightly to match mplayer more closely. ReplayGain preamp adjustment has moved from '0'/'9' to '7'/'8' keys. The 'm' key also toggles mute state (the pre-mute volume is stored in the dtas-console instance, not in dtas-player itself).
2015-12-14Merge branch '0.12.x-stable'
* 0.12.x-stable: dtas 0.12.1 - one bugfix! :x dtas-tl edit: fix ordering of newly-added songs
2015-12-14dtas 0.12.1 - one bugfix! :x v0.12.1
One bugfix on top of dtas 0.12.1 dtas-tl edit: fix ordering of newly-added songs Everything else in the v0.12.0 release stil applies: http://80x24.org/dtas-all/20151214-dtas-0.12.0-unle@shed/t/ Have fun!
2015-12-14dtas-tl edit: fix ordering of newly-added songs
We need to add new songs in reverse order of what's in the file to preserve ordering when they're added after an existing ID. This way we don't have to remember the track we just added, either.
2015-12-14dtas-tl: fixup addtail again
Oops :x commit 0dde5917fb5135ee3601383c29ffc0490071ea9d ("dtas-tl: simplify existing addtail/addhead while we're at it")
2015-12-14dtas-tl: simplify existing addtail/addhead while we're at it
No need to keep track of added track IDs when we can walk the array backwards to insert in the correct order. Also, fix a stupid (probably?) typo in the "addhead" implementation, too. I've known about Array#reverse_each for a while...
2015-12-14dtas-tl edit: fix ordering of newly-added songs
We need to add new songs in reverse order of what's in the file to preserve ordering when they're added after an existing ID. This way we don't have to remember the track we just added, either.
2015-12-14dtas 0.12.0 - many player updates v0.12.0
Notable additions for dtas-player music listeners. dtas-ctl queue cat - display the internal queue dtas-tl shuffle [true|false] - toggle tracklist shuffle dtas-tl edit - open tracklist in an editor see dtas-tl(1) manpage for more details on this: http://dtas.80x24.org/dtas-tl.txt The player tracklist now uses sequential track IDs instead of Ruby object IDs, so it should be easier to use existing commands such as "dtas-tl goto" and "dtas-tl remove" For people using dtas-player for applying real-time effects to splitfx YAML files, dtas-player can now watch for changes in scripts specified in the "command" field of the splitfx YAML file. Previously, dtas-player could only read the splitfx YAML file itself. This requires GNU/Linux and the sleepy_penguin RubyGem installed. dtas-splitfx also learned some switches to allow easier interoperability with other processing tools: -p/--sox-pipe - identical to the sox(1) option -t/--trim - only expose part of the track, useful when combined with the above -p switch See http://dtas.80x24.org/dtas-splitfx.txt for more details. There's also some work-in-progress stuff that's not well documented at the moment. As with anything pre-1.0, expect the possibility of incompatible changes. Since I'm not good at designing protocols, I've also started working on mpd compatibility layer to allow using the normal music playback stuff with more clients (some of the clients I actually like, unlike the seemingly GUI-only landscape of MPRIS :P). Of course, dtas-player itself has most the capabilities of a Unix shell; and those capabilities will certainly not be available to mpd or MPRIS clients. 64 changes since dtas 0.11.0 INSTALL: update documentation for 0.11.0 release splitfx: fix lossy output with player command is in use splitfx: fix non-generic, user-specified targets use monotonic clock on Ruby 2.1+ dtas-splitfx: no arguments for quiet and --no-dither dtas-splitfx: support --trim argument process: implement array expansion to preserve spaces splitfx: show correct command for output splitfx: remove support for encoding opus dtas-console: bind "o" to display time in absolute seconds splitfx: avoid double-truncation with user command source/splitfx: allow watching extra external scripts splitfx: drop unnecessary variable splitfx: documentation for subclasses splitfx: simplify output display dtas-splitfx: comment describing -j (nothing) as infinite dtas-*edit: fix inotify watch invocations splitfx: allow -p/--sox-pipe option splitfx: ensure rate is an integer splitfx: set OUTFMT correctly for subenv if command is set favor recv and recv_nonblock over recvmsg variants parse_time: pass through numeric types parse_freq: trivial new module for parsing frequencies use a common /dev/null player: add "queue cat" command dtas-readahead: new script for -player users on Linux dtas-readahead: avoid polling on pause dtas-cueedit: escape path to temporary file dtas-readahead: make executable gemspec: use SPDX-compatible license README: add link to NNTP and Atom feeds player: cleanup command dispatch dtas-archive: allow specifying SoX compression factor gemspec: duplicate frozen string for older Rubygems allow building the gem without pandoc introduce dtas-mlib for music library functions dtas-mlib: add dump support for debugging tracklist: use lower number unique track IDs tracklist: do not mutate @list when serializing tracklist: avoid needlessly building a hash for track IDs tracklist: shuffle support tracklist: support limiting maximum tracklist size player: refactor and document tracklist interface player: tl (repeat|shuffle|max) and trim swap values tracklist: fixup idempotent "tl shuffle false" switch to exception-free non-blocking I/O add .gitattributes for Ruby method detection mlib: remove non-existent entries mlib: add stats support mlib: no kwargs for 1.9.3 compatibility mlib: add find/search functionality based on mpd mlib: split out the output format from the library mlib: remove kwargs harder player: reduce I/O priority of connected clients mlib: SYSTEM_DEFAULT handlers for SIGINT and SIGPIPE player: support "tl clear" internally test_unixserver: remove test for element limit player: dump state file asynchronously when requested parse_time: enable frozen_string_literal unix_accepted: enable checking for readability after emit tracklist: swap functionality player: show "tracklist" hash with summary info with "current" dtas-tl: learn an "edit" sub command doc: document additions to tracklist handling
2015-12-14doc: document additions to tracklist handling
2015-12-14dtas-tl: learn an "edit" sub command
This should allow convenient rearranging and deleting of tracks from the tracklist from your favorite $EDITOR.
2015-12-14player: show "tracklist" hash with summary info with "current"
This allows clients to quickly query tracklist size/position/shuffle/random info.
2015-12-14tracklist: swap functionality
This (from the point of the client) will atomically swap two tracks. This should allow easily implementing of a tracklist editor.
2015-12-13unix_accepted: enable checking for readability after emit
Oops...
2015-12-13parse_time: enable frozen_string_literal
This is a new feature in Ruby 2.3 which can reduce allocations without adding ugly ".freeze" calls everywhere. This is a small enough file that we shouldn't have to worry about inadvertant breakage.
2015-12-13player: dump state file asynchronously when requested
This avoids stalling when we have a gigantic tracklist.
2015-12-13test_unixserver: remove test for element limit
Fixes: commit d628e9bd3c5ef42e44c8e14f8eaf9a85dd541a4c ("player: reduce I/O priority of connected clients") Oops :x
2015-12-13player: support "tl clear" internally
It is orders of magnitude more efficient to implement this in the player and very noticeable when using large playlists.
2015-12-13mlib: SYSTEM_DEFAULT handlers for SIGINT and SIGPIPE
This makes interrupting the potentially long output of "dtas-mlib dump" less ugly. Perhaps it makes sense for our other scripts to follow suit.
2015-12-13player: reduce I/O priority of connected clients
Do not batch processing of requests or buffered output. We cannot have clients running "dtas-tl cat" or similar to dump a gigantic playlist cause us to have gaps in our playback. Since we implemented a tunable tracklist limit, we can also remove the hardcoded 100 element limit for buffered messages while we're at it; now the tracklist limit affects maximum memory use.
2015-12-13mlib: remove kwargs harder
We need this script to work under Ruby 1.9.3 as well, for the time being.
2015-12-13mlib: split out the output format from the library
The caller should dictate how the output format goes, not the library.
2015-12-13mlib: add find/search functionality based on mpd
This allows fast-ish tag searching, but the internal API is still subject to change to ease emulation of mpd.
2015-12-13mlib: no kwargs for 1.9.3 compatibility
We'll continue supporting Ruby 1.9.3 as long as Debian wheezy is supported.
2015-12-13mlib: add stats support
These are the same stats used by the mpd "stats" command.
2015-12-13mlib: remove non-existent entries
Files in a music library may be deleted or renamed, so our library should not persist old data. Unfortunately this double-stats all files, but using a hash for temporary storage could also bloat memory/disk usage and probably isn't worth it at the moment.
2015-12-13add .gitattributes for Ruby method detection
The "diff" function detection for C does not map well to Ruby files, take advantage of gitattributes(5) to improve method name detection in generated patches as well as making "git diff -W" output more useful.
2015-12-13switch to exception-free non-blocking I/O
Ruby 2.3 will have `exception: false' support in socket-related classes. Additionally, 2.3 will implement the existing IO#*_nonblock methods more efficiently than before by avoiding the hash allocation necessary for keywords. For users on older Rubies, we'll continue supporting them with compatibility wrappers; even Ruby 1.9.3 users (for now).
2015-12-13tracklist: fixup idempotent "tl shuffle false"
Disabling shuffle should be idempotent.
2015-12-07player: tl (repeat|shuffle|max) and trim swap values
It makes more sense to return the previous value rather than the newly-set one, since the user presumably knows what they're setting and might care about the previous value.
2015-12-07player: refactor and document tracklist interface
The dpc_tl method was becoming too large, split it up into sub-methods for easier readability. While we're at it, at least make "tl repeat" consistent with "tl shuffle" when setting new values.
2015-12-07tracklist: support limiting maximum tracklist size
This defaults to 16384? This is what mpd uses by default as well. Of course folks interacting with dtas-player directly can override this: dtas-tl max INTEGER dtas-tl max This is NOT meant to be a hard security measure for local users talking to dtas-player directly. It is only to prevent accidentally stupid things like flooding the playlist with a broken script and to prevent remote users from DoS-ing us via the to-be-written mpd proxy/emulation layer. Remember: dtas-player itself will ALWAYS remain capable of executing arbitrary code :)
2015-12-07tracklist: shuffle support
This is in the MPRIS 2.0 TrackList spec and also in mpd (as "repeat" mode), so we can probably support it directly in player to ease implementations of future wrappers.
2015-12-06tracklist: avoid needlessly building a hash for track IDs
Building this hash is a linear operation anyways, so there's no point in doing it when Array#index can stop early if the track is found, to avoid unnecessary work.
2015-12-05tracklist: do not mutate @list when serializing
This happens when "dtas-ctl state dump" is invoked manually; causing "dtas-tl cat" to break afterwards. Fixes: commit 7b065706d37df9e54c8b3299ce696545c6159fa4 ("tracklist: use lower number unique track IDs")
2015-12-05tracklist: use lower number unique track IDs
This is easier for users to read and type; and _might_ help with race conditions due to fast object recycling from GC. We'll also be implementing playist versioning on top of this in the next commits for MPD protocol compatibility. Unfortunately this adds an additional 40 bytes of per-track overhead (on 64-bit systems, its only 20 bytes on 32-bit). However, we may be able to save memory in the future by supporting dtas-mlib node IDs if we integrate dtas-player with DTAS::Mlib. While we're at it, include a minor speedup for DTAS::Tracklist#remove_track by using Array#delete_at instead of relying on Array#compact! after assignment This should improve "dtas-tl cat" output readability dramatically. The state file (~/.dtas/player_state.yml) remains compatible between dtas-player before and after this change.
2015-11-28dtas-mlib: add dump support for debugging
Using an RFC-822-like format since YAML quoting rules aren't very human-friendly, and we already prevent newlines from entering our DB anyways.
2015-11-22introduce dtas-mlib for music library functions
Eventually this will support searching and be the basis of an mpd-compatible proxy in front of dtas-player