Another idea for -Q switch

Brandon Kuczenski <[email protected]> Sun, 17 Jul 2005 23:39:50 -0400 (EDT)
Newsgroups gmane.comp.multimedia.xmms.devel
Message-ID <Pine.LNX.4.62.0507172304190.6108@localhost>
This is sort of a feature request.  How complicated would it be to 
implement the following:

Currently, opening a track with the -Q switch causes that track to be 
added next in line in the playlist.  But if xmms is currently stopped, the 
track will be enqueued but not actually played.  Desired behavior would 
be: enqueue the track to the current playlist AND start playing it if xmms 
is currently stopped, or enqueue it 'next in line' after the current track 
if xmms is currently playing.  It makes sense to me that running 'xmms' 
should cause music to be played, even if no music is currently playing, 
and even if the -Q switch is specified.

Possibly this could be added to the -e switch too.

Does that make sense?  Is there interest?  It would be possible to do with 
the -p switch, if the behavior of -p was changed to not actually interrupt 
songs that are already playing.

Or, if XMMS's 'playing/not playing' state could be queried (can it?) then 
one could do this with a shell script wrapper.

Also, preliminary evidence suggests that when a playlist is loaded but 
xmms is not playing, and the -Q switch is used, the selected file will be 
played 'second' if xmms -p is sent.  It seems like it should be 'first'.

Regards,
Brandon