Date | Commit message (Collapse) |
|
This fixes a bug introduced in 0.12.0 which only affects
non-sleepy_penguin users.
Fixes: d3cf61b05d95 ("switch to exception-free non-blocking I/O")
|
|
Both of these are optional, so stop trying them if we
do not detect them.
|
|
Newer avprobe outputs a new format, fix our parser to workaround
this while remaining compatible with the old one in Debian wheezy.
Additionally, ffprobe is no longer available as a link to
avprobe.
|
|
The player tracklist now has a "consume" mode similar to
what exists mpd. The advantage of using "tl consume"
over the plain queue is the tracklist is more easily
editable. You may enable or disable it in a running
player using:
dtas-tl consume <true|false>
This also fixes an output formatting bug in "dtas-tl cat"
introduced in 0.13.1.
Documentation is converted to Perl POD documentation format.
It should be easier to build the documentation as pod2man
is nearly universal nowadays, unlike pandoc.
14 changes since 0.13.1:
doc: update-footer.rb: fix for frozen_string_literal
doc: convert to perlpod(1) from Markdown
doc: preserve times in website
dtas-tl: fix "cat" output
player: avoid allocation on sort
String#split with a single-byte instead of regexp
source/sox: explicitly freeze comment keys
source/sox: try_to_fail_harder is a normal method
mlib: support all formats of player
mlib: support --force option
build: install-gem forced to "--local" domain
mlib: use more appropriate methods
player: support "consume" mode for tracklist
doc: update documentation for tl consume and shuffle
Many more releases on the horizon!
|
|
shuffle was never documented in dtas-tl(1) when it was introduced,
and consume is a new feature.
|
|
When activated, this boolean deletes a song from the tracklist
after it is played.
|
|
.each on a Sequel dataset is more appropriate for the way we
emit comments.
And using Array#map! is more efficient when we do not
need the original array.
|
|
This avoids needless network traffic when installing the
locally-built gem.
|
|
We will allow forcing updates since upgrading dependent software
(e.g. sox, avprobe, ffprobe) may allow previously-ignored files
to become support
|
|
Almost, we will need to get a list of all suffixes supported
by ffprobe or avprobe. This could prove tricky..
|
|
The @last_failed state is in the parent object, not the dup-ed
object we fork off of.
|
|
We load them frequently enough that the garbage
is not worth it.
|
|
This reduces memory usage as a Regexp object is hundreds
of bytes and a single-byte string object is only 40 bytes
that is deduped within the VM.
|
|
Hash#keys already allocates a new array, so we may sort it
in place without worrying about side effects and avoiding
an extra allocation.
|
|
It needs to display the track ID on the left like in
0.13.0 and earlier versions. Oops.
Fixes: cb5a016bf5e1 ("dtas-tl: shell-unescape cat output")
|
|
We should not be busting caches and wasting visitor's bandwidth
for unmodified files.
|
|
perlpod(1) is already installed by default on Debian and
RedHat-based systems; and probably most modern *nixes; pandoc(1)
(and Haskell) are not.
POD also more standardized than Markdown (which flavor? :P),
especially for generating manpages. So save any potential
documentation editors some disk space by not forcing them to install
Haskell and pandoc.
Finally, I'm a mildly proficient in Perl and do not know Haskell
at all and have a better chance at reading/hacking the source if
the document generator breaks.
|
|
Oops :x
|
|
This release addresses encoding and escaping-related bugs affecting
the use of "dtas-tl edit" (and to a lesser extent, "dtas-tl cat").
Filenames with characters requiring shell-escaping were not
round-tripped correctly, causing movement/addition of such files
(which may not be properly encoded to any encoding) to be handled
incorrectly.
There are also some mlib bug fixes, but the mlib API and CLI are
currently unstable and undocumented...
4 changes since 0.13.0:
dtas-tl: hopefully fix up encoding issues
dtas-tl: shell-unescape cat output
mlib: fix foreign-key ordering issues with delete
dtas-mlib: avoid redundant '/' in dumped pathname
|
|
Harmless, but noisy and ugly.
|
|
We need to ensure children and comments are all deleted before
parents are.
|
|
We do the same with edit and this makes tracklists look nicer with
non-7-bit-ASCII characters. While we're at it, use each_slice to
request more info from the tracklist to reduce syscalls on both
ends.
|
|
POSIX filesystems allow any combination of bytes, so we should be
able to edit the tracklist when we have a filename with non-UTF-8
(or whatever locale the user uses). Try to present the user with
a reasonable name when they have an external encoding (typically
UTF-8); but be prepared to dump out whatever binary sequence
the filesystem allows.
|
|
Not much since 0.12.0:
* "dtas-tl aac" implemented for adding tracks after the current
track in dtas-player(1).
* dtas-player now implements software volume control to
simultaneously control the volume of all sinks.
dtas-console remaps '0'/'9' keys for software volume control
to match mplayer(1) behavior. '7'/'8' now adjusts the ReplayGain
preamp volume. I'm still considering changing the 'r'/'R' keys
for repeat cycling and moving ReplayGain cycling to 'g'/'G':
http://80x24.org/dtas-all/20160105090453.GA30328@dcvr.yhbt.net/
* dtas-console shows the paused player track, and trim/shuffle/repeat
statuses.
* all comments loaded from YAML files intended for dtas-splitfx(1)
are stringified.
Other than that, I enjoy using the "dtas-tl edit" feature from
0.12.0+ to modify the tracklist very much :)
There's a couple of changes to the experimental stuff hasn't been
documented at all and even more subject to change than the rest
of dtas...
30 changes since dtas 0.12.1:
dtas-tl: simplify existing addtail/addhead while we're at it
dtas-tl: fixup addtail again
player: implement software volume control
Rakefile: add Atom feed to website
rg_state: fixup replaygain normalization
Revert "dtas-tl: simplify existing addtail/addhead while we're at it"
nodoc internal classes
dtas-tl: "edit" gives sequential track IDs on new tracks
gemspec: require Ruby 1.9.3 at minimum
dtas-tl: add "aac" (add-after-current) command
mlib: wire up search/find/stats to the UI
mlib: fix update
dtas-readahead: use our spawn fix properly
enable "frozen_string_literal: true"
doc: various wording fixes and doc enhancements
remove vestigial mentions of opusenc
splitfx: fixup frozen_string_literal for spawn
player: frozen_string_literal fixup for "tl tracks"
dtas-console: show paused track and time offset
dtas-console: show trim and "tl repeat" status
mlib: warn about non-SQLite databases becoming unsupported
console: display paused commands properly
source/splitfx: stringify comments
copyright updates for 2016
player: replaygain: avoid unnecessary ignoring
console: try harder to show rate
console: show tracklist shuffle status, too
tracklist: fix off-by-one error on track removal
tracklist: reshuffle tracklist when exhausted
dtas-tl: document "aac" addition
|
|
Note to self: remember to document new features as they're added.
|
|
For now, shuffle means "random without repeats". So avoid repeating
ourselves by shuffling when we've reached the end of the shuffled
tracklist and have no more tracks to go. Whenever a client restarts
the player or hits the loop for repeat, we'll have a freshly
shuffled list for them to listen to.
|
|
@pos is an array index, and should never go beyond
the last element.
|
|
We support this feature, so it should probably be shown along with
the repeat status of the tracklist. Ensure we notify all of our
listeners about the status change in player, too.
|
|
Try to take advantage of bypass being enabled for sample rate,
then show the raw sample offset if we cannot get the rate.
|
|
It is possible for a file to only have one of the ReplayGain
tags we need and not the previous-required REPLAYGAIN_TRACK_GAIN
tag. So do not reject the entire series of tags if a file has
the one we want.
|
|
Using the 'update-copyright' script from gnulib[1]:
git ls-files | UPDATE_COPYRIGHT_HOLDER='all contributors' \
UPDATE_COPYRIGHT_USE_INTERVALS=2 \
xargs /path/to/gnulib/build-aux/update-copyright
[1] git://git.savannah.gnu.org/gnulib.git
|
|
It's easier to leave numerics unquoted in YAML; so automatically
stringify comments comming from the YAML file.
|
|
Running commands can be "paused" (actually, they're stopped),
so we must display them correctly when attempting to encode
them in the correct format instead of barfing when we attempt
to call the 'encode' method on a Hash object.
|
|
For a music collection (even a large one), SQLite is sufficient
and less overhead than all of Sequel.
|
|
It probably makes sense for the -console user to know if tracklist
repeat and trim are enabled. Have player emit these in "current"
output and let the console client track them for now.
|
|
When invoking the "current" command, the player now returns the
first track + offset in the queue.
This should make it easier to show what's paused or not.
|
|
Oops :x
|
|
This only affected splitfx when it used the command option,
and only when calling dtas-splitfx (not when playing splitfx
files through the player).
|
|
We removed support for opusenc back in May as it was not
really suitable for audio production and a maintenance burden.
ref: commit 7ca5d0bfc714c254c374af9cbc2e024a8b439725
("splitfx: remove support for encoding opus")
|
|
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).
|
|
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
|
|
Our spawn fix does not cover singleton dispatch from the
Process class; only bareword "function" calls.
|
|
We cannot use "dirname" in queries, oops :x
|
|
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.
|
|
This can be useful to avoid using the queue internally.
|
|
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.
|
|
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"')
|
|
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).
|
|
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.
|
|
Oops, normalization is probably a forgotten feature...
|