Page 1 of 4 1234 LastLast
Results 1 to 10 of 34

Thread: REQUEST: Run Multiple RR instances

  1. #1
    Maximum Bitrate Jarrod's Avatar
    Join Date
    Jan 2002
    Location
    Melb, Australia.
    Posts
    475

    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. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    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."

  3. #3
    Maximum Bitrate Jarrod's Avatar
    Join Date
    Jan 2002
    Location
    Melb, Australia.
    Posts
    475
    Yet another RR feature I was unaware of!

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

  4. #4
    SMKFree liquid_smoke's Avatar
    Join Date
    Aug 2003
    Location
    Chicago
    Posts
    4,842
    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/rr-faq/
    mp3car live search

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

  5. #5
    Banned JagPuter's Avatar
    Join Date
    Apr 2006
    Location
    My Garage
    Posts
    128
    Can you run 2 instances of winamp. I didnt know this one either...
    Wow the things you learn from reading.
    GUINO ROCKS....

  6. #6
    Maximum Bitrate Jarrod's Avatar
    Join Date
    Jan 2002
    Location
    Melb, Australia.
    Posts
    475
    Was that sarcastic? Or are you actually wanting to know how to run two instances of winamp?
    Jarrod - Holden VX S!

  7. #7
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    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."

  8. #8
    Maximum Bitrate Jarrod's Avatar
    Join Date
    Jan 2002
    Location
    Melb, Australia.
    Posts
    475
    Quote 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!

  9. #9
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    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."

  10. #10
    Maximum Bitrate Jarrod's Avatar
    Join Date
    Jan 2002
    Location
    Melb, Australia.
    Posts
    475
    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!

Page 1 of 4 1234 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 07-18-2005, 02:42 PM
  2. Auto load FD when RR starts up
    By tolisn in forum Road Runner
    Replies: 2
    Last Post: 07-08-2005, 04:30 PM
  3. Multiple Monitors and Multiple inputs
    By nixneon in forum Newbie
    Replies: 1
    Last Post: 03-19-2005, 07:30 PM
  4. Requirements to run RR properly
    By oekundar in forum Road Runner
    Replies: 17
    Last Post: 03-07-2005, 06:40 PM
  5. Does anyone have a multiple LCD screen setup?
    By Choser in forum LCD/Display
    Replies: 5
    Last Post: 02-04-2004, 11:32 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
  •