Results 1 to 6 of 6

Thread: Memory button in AudioPlayer

  1. #1
    hax
    hax is offline
    Newbie
    Join Date
    Sep 2008
    Posts
    3

    Question Memory button in AudioPlayer

    Hello
    I'm a new RoadRunner user and is in the making of a skin that has the functions that I need in my car. One thing I think whould be great is to be able to with a push of a button save which song i'm listening to and even the position in it.

    The reason for this is that I often listen to audio books and sometimes you want to take a break and listen to some music and then later start listen to the audio book again. It's now the problems show up, where in the book was I, was it file 156 or 235??? Then it whould be great to just push a button to recall the position i saved earlier.

    Is this possible to do with just skincommands??

    I don't use the audioplayer with all the database stuff, just the basic audioplayer with winamp.

    Regards
    /HAX

  2. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    UNTESTED:

    Code:
    To Save position:
    "SAVELIST;MEM1.M3U||SETVARBYCODE;MEM1SONG;TRACKNAME||SETVARBYCODE;MEM1POS;TRACKTIME"
    
    To restore position:
    "STOP||LOADLIST;MEM1.M3U||SELPL||SETLIST;$MEM1SONG$||PLAY||SEEKTO;$MEM1POS$"
    May require some tweaking, but you can also switch the "1" for any other number to make new save/restore buttons
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  3. #3
    FLAC Nomader's Avatar
    Join Date
    Apr 2006
    Location
    Greece
    Posts
    1,294
    Guino!!! happy to see you around mate.. we kind of missed you!

  4. #4
    hax
    hax is offline
    Newbie
    Join Date
    Sep 2008
    Posts
    3
    Look's promising, but am I wrong if I guess that this would loose the memory if I restart RoadRunner?? Is it possible to write the variables to a file?

    Thanks
    /HAX

  5. #5
    FLAC
    Auto Apps:loading...
    EL CAMINO's Avatar
    Join Date
    Jul 2005
    Location
    upland california us
    Posts
    1,283
    very possible, just save the info to your skin.ini. use this code based in guinos code(will save info to skin.ini, and m3u file in your skin folder.
    Code:
    "SAVELIST;$SKINPATH$MEM1.M3U||SETVARBYCODE;MEM1SONG;TRACKNUMBER||SETVARBYCODE;MEM1POS;CURRENTTRACKTIME||SAVETOSKIN;MEM1SONG;$MEM1SONG$||SAVETOSKIN;MEM1POS;$MEM1POS"
    Code:
    "STOP||MUTE||LOADLIST;$SKINPATH$MEM1.M3U||SELPL||SETLIST;$MEM1SONG$||PLAY||SEEKTO;$MEM1POS$||MUTE"

  6. #6
    hax
    hax is offline
    Newbie
    Join Date
    Sep 2008
    Posts
    3
    Perfect, will try it later!!

    /HAX

Similar Threads

  1. Change Log
    By iamgnat in forum CarFrontEnd
    Replies: 12
    Last Post: 03-19-2008, 10:33 PM
  2. iGuidance Hacks
    By pbarrette in forum GPS
    Replies: 47
    Last Post: 12-28-2007, 03:06 PM
  3. Relocating computer power button
    By King_Xerxes in forum General Hardware Discussion
    Replies: 8
    Last Post: 02-21-2007, 09:15 PM
  4. iGmod Beta 2 release
    By PURDooM in forum Other Cool Stuff
    Replies: 625
    Last Post: 05-12-2006, 02:52 PM
  5. Replies: 2
    Last Post: 04-04-2005, 03:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •