Discussion:
dtas-ctl queue cat in case player paused and song not started
Rene Maurer
2015-12-16 15:53:25 UTC
Permalink
,----
| dtas-player &
| idle
|
| $ dtas-ctl queue cat
| --- []
|
| $ dtas-ctl pause
| ---
| paused:
| before: false
| after: true
|
| $dtas-enq /home/rene/tango.flac
| /home/rene/tango.flac OK
|
| $ dtas-ctl queue cat
| ---
| - "/home/rene/tango.flac"
`----

IMHO the output of dtas-ctl queue cat should be
,----
| ---
| - - "/home/rene/tango.flac"
| - 0s
`----

What do you think?

Best
René
Eric Wong
2015-12-16 18:34:29 UTC
Permalink
Post by Rene Maurer
| $ dtas-ctl queue cat
| ---
| - "/home/rene/tango.flac"
`----
IMHO the output of dtas-ctl queue cat should be
,----
| ---
| - - "/home/rene/tango.flac"
| - 0s
`----
What do you think?
I consider the zero offset to be implied.

Redundant data just adds to noise over socket and output; and
it waste 80 bytes(!) of memory in the player for (40 bytes if
you're on 32-bit).

I don't think anybody would run the following on the command-line:

play foo.flac trim 0

Instead of:

play foo.flac
Rene Maurer
2015-12-16 23:17:44 UTC
Permalink
Post by Eric Wong
Redundant data just adds to noise over socket and output;
You are right. And on the other hand it's not a big deal to distinguish
between the output formats.
Post by Eric Wong
play foo.flac trim 0
play foo.flac
I start the player in paused state; add songs to the queue (while
watching the queue with dtas-ctl queue cat). As said, no problem
without zero offset.

Loading...