Announcement

Collapse
No announcement yet.

REQUEST: Run Multiple RR instances

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • REQUEST: Run Multiple RR instances

    Hi Guys & Gals,

    I have been testing out running multiple instances of RR on the same machine (each instance is copied to its own dir, ie. "c:\Program Files\Road Runner" and "c:\Program Files\Road Runner2").

    The reason I am doing this is to allow the rear seat passengers to control their own in-car experience. I have extended my desktop using the TV out (I will be upgrading to dual VGA outputs once I see if I can get this working). I then set the second RR instance Xposition in it's skin general.ini file to 799 to force it to load in the extended desktop.

    I have also setup Winamp in two dirs (same approach as the RR folders) and set each RR instance to a different Winamp path. Each instance is set to use a different soundcard (I will be testing with a cheap USB sound card like this eventually, it will only be used by headphones in the rear seat anyway, so no need for an expensive second soundcard).

    This works great but there are a few issues which need to be resolved before it can be used.

    Firstly, both instances of RR control the same instance of Winamp, making it impossible to play different tracks. This is because currently RR is loading winamp using the default class name ("Winamp v1.x").

    The following changes are required to the RR Source 06-03-06 to enable multiple instances of RR to be used with each controlling its own winamp instance. The winamp class name for each RR instance can be set in RR.ini with the following line: WinampClass="WinampClassNameGoesHere"

    Changes required:
    Code:
    frmLoader.frm:
    --------------
    Line 228: ADD BELOW
    WinampClass = "RoadRunnerWinamp1"
    --------------
    Line 959: ADD BELOW
    Case "WinampClass"
    WinampClass = Trim(DT(1))
    --------------
    
    
    ----------------------------------------------------------------------------------------------------------------
    WinAMP_Control.bas:
    -------------------
    Line 205: CHANGE
    hWndWinAMP = FindWindow("Winamp v1.x", vbNullString)
    To:
    hWndWinAMP = FindWindow(WinampClass, vbNullString)
    --------------
    Line 521: CHANGE
    ReturnValue = Shell(Chr(34) + winamp_path + "winamp.exe" + Chr(34), IIf(HideWinamp, vbHide, vbNormalNoFocus))
    To:
    ReturnValue = Shell(Chr(34) + winamp_path + "winamp.exe" + Chr(34) + " /CLASS=" + Chr(34) + WinampClass + Chr(34), IIf(HideWinamp, vbHide, vbNormalNoFocus))
    --------------
    Line 545: CHANGE
    ReturnValue = Shell(vbQuote + winamp_path & "winamp.exe" & vbQuote & " /ADD " & vbQuote & strFileName & vbQuote, vbNormalNoFocus)
    To:
    ReturnValue = Shell(vbQuote + winamp_path & "winamp.exe" & vbQuote & " /CLASS=" & vbQuote & WinampClass & vbQuote & " /ADD " & vbQuote & strFileName & vbQuote, vbNormalNoFocus)
    --------------
    These changes would not affect people running single instances of RR at all. I have not tested the changes, but I have controlled Winamp via VB.NET before, utilizing multiple winamp instances for multiple zones in a home audio setup. I don't have a VB.OLD compiler on my PC, so if someone could compile this for me (or let me know how to do it from Visual Studio 2003) it would be very helpful.

    There are a few other issues that need to be sorted (like fighting over embedded app windows if both instances are trying to view the same app), but if we can get the audio stuff working, it would solve the major issues.

    I intend to setup the rear screen RR skin with limited functionality, like Music, Video, DVD, GPS only, whilst the front screen skin has all the extras. DVD is another problem with only one DVD drive, to make both screens show the same DVD, easiest solution being to not allow the front screen to show DVD's (just control them).

    Guino: Think you could test this out for the official release? I know you're a busy man, but if we could get this all working, it would open up a world of oportunities!
    Jarrod - Holden VX S!

  • #2
    you can use /2 in the command line to run two copies of RR but it only controls 1 winamp right now.. I'll try to add your changes for next release.
    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."

    Comment


    • #3
      Yet another RR feature I was unaware of!

      Look forward to testing it out in the next release
      Jarrod - Holden VX S!

      Comment


      • #4
        wow, i didnt know this either
        01101100 01101001 01110001 01110101 01101001 01100100 01011111 01110011
        01101101 01101111 01101011 01100101

        beer replenishment fund
        http://www.mp3car.com/vbulletin/forumdisplay.php?f=93
        mp3car live search

        i have joost invites, just hit me up for one.

        Comment


        • #5
          Can you run 2 instances of winamp. I didnt know this one either...
          Wow the things you learn from reading.
          GUINO ROCKS....

          Comment


          • #6
            Was that sarcastic? Or are you actually wanting to know how to run two instances of winamp?
            Jarrod - Holden VX S!

            Comment


            • #7
              From what I tested, it works fine.
              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."

              Comment


              • #8
                Originally posted by guino
                From what I tested, it works fine.
                My code changes or running 2 winamp instances?
                I'd love to test out RR running two instances controlling two seperate instances of winamp. Any chance you can do a quick compile for me Guino?
                Jarrod - Holden VX S!

                Comment


                • #9
                  both.
                  http://www.rrdownloads.net/beta/rr.exe
                  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."

                  Comment


                  • #10
                    Thanks Guino!! I will test it out shortly.

                    Think there is any chance of running two instances of FreeDrive to stop each RR instance fighting over it?
                    Currently one RR instance shows it, then goes black whilst the other RR isntance steals it, then keeps swapping back and forth.
                    Jarrod - Holden VX S!

                    Comment


                    • #11
                      There's no way to prevent that. You can only have ONE screen in ONE place at ONE time. I am pretty sure Destinator doesn't run twice so there's not much that CDR could do to fix it, other than some cheap-*** screen copying feature.
                      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."

                      Comment


                      • #12
                        Yeah I thought that would be the case. How about one RR instance running FD and one running MM, with a port splitter to share the GPS between the two apps? Just thinking out loud here...Can't test anything until tomorrow.
                        Jarrod - Holden VX S!

                        Comment


                        • #13
                          they both use Destinator which means they wont run at the same time either.
                          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."

                          Comment


                          • #14
                            i havent tested this yet, but is it possible for each instance to have its own settings etc, (2 seperate RR installs) ?
                            01101100 01101001 01110001 01110101 01101001 01100100 01011111 01110011
                            01101101 01101111 01101011 01100101

                            beer replenishment fund
                            http://www.mp3car.com/vbulletin/forumdisplay.php?f=93
                            mp3car live search

                            i have joost invites, just hit me up for one.

                            Comment


                            • #15
                              that's the idea.
                              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."

                              Comment

                              Working...
                              X