Menu

Improvements for xmms-shell

2003-11-03
2004-09-13
  • Christophe Bliard

    Hello

    I have developped some stuff for xmms-shell that could be added to the official code.

    I have added a "offset" command to be able to go exactly at a specificated time in a track. It can also be used to retrieve the current track offset or to go forward and reward in the song.
    The syntax is "offset [[+|-]<value>]"

    I have improved the "fade" command. An action can be specified when the fading is done. The actions are "stop", "continue", "play", "next", "pause", "pauserestore".
    The syntax is fade [left|right] [action] [target] [stepsize] [delay]

    I hope it is useful (actually, I think it is ;-) )

    Best regards

    Christophe Bliard

     
    • teekiller

      teekiller - 2004-08-25

      Hi,

      I added a Songlenght-line to the status output,for calculating the rest of the playing time of the actual song.
      Just add the function

      int Session::playlist_time(int t) const
      {
          ensure_running();
          if (t<0) t=xmms_remote_get_playlist_pos(sid);
          return xmms_remote_get_playlist_time(sid,t);
      }

      to session.cc and the lines

      t2= session.playlist_time(songnr);
      printf("Songlength: %02d:%02d.%02d\n", t2 / 60000, (t2 / 1000) % 60, (t2 / 10) % 100);

      to general.cc to class StatusCommand.

       
    • teekiller

      teekiller - 2004-09-13

      Sorry, I forgot to mension that you have also to add the line
      int playlist_time(int) const;
      to the file include/session.h

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.