Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: New Audio Source

  1. #1
    Low Bitrate rtgree01's Avatar
    Join Date
    Aug 2007
    Location
    STL
    Posts
    98

    New Audio Source

    So...

    I have worked on a new interface to talk to my car's OEM Sirius radio, steering wheel controls, and other stuff... I'm almost ready to use it in my system full time.

    I have written an extension that controls the Sirius radio and a corresponding skin for it. My problem is that RideRunner still thinks that it is in a different audio mode than Sirius. For example, I start listening to my MP3 collection, then go to my new Sirius skin... The TAGARTIST and TAGTITLE use information from both my extension and the Audio screen's information.

    How would I either "fake" RR into thinking the normal Sirius system is activated, or make a new type of Sirius system that RR recognizes?

    Thanks!

  2. #2
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,258
    since you say you wrote a plugin in, you can override TAGARTIST
    and return what you want, and have label nulled out, so RR wont process it

    just test if you should process it, set returnlabel, and LBL =""
    so rr doesnt process it
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

  3. #3
    Low Bitrate rtgree01's Avatar
    Join Date
    Aug 2007
    Location
    STL
    Posts
    98
    I thought I was doing that....

    Here is a snippet of code for ReturnLabel. There are more labels that I "override" in the same manner. Did I forget something?

    Code:
    public string ReturnLabel(string LBL, string FMT)
    {
    	string s = "";
    
    	if ((initd) && (active))
    	{
    		switch (LBL.ToLower())
                    {
                        case "trackname":
                        case "tagtitle":
                            s = radio.siriusTextLine[3].Substring(0, radio.siriusTextLine[3].IndexOf('\0'));
                            LBL = "";
                            break;
    
                        case "tagartist":
                            s = radio.siriusTextLine[4].Substring(0, radio.siriusTextLine[4].IndexOf('\0'));
                            LBL = "";
                            break;
    		}
    
    	return s;
    }
    It looks like RR is appending to the label that I am filling.

  4. #4
    Low Bitrate rtgree01's Avatar
    Join Date
    Aug 2007
    Location
    STL
    Posts
    98
    I also wanted to mention that the name of my skin file is not sirius.skin... Could that be the problem?

  5. #5
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    I advise you check the label with the skin too -- if you're using a standard skin the label code using may just be combined with something else making it seem like it has more data than what you returned. Your code appears to be right.. as long as initd and active are both true there's no reason why RR would ignore the returned information from your plugin -- I would suggest changing the label code for testing.. say "mytagtitle" instead of "tagtitle" then adjust the skin to test (just to see if your code is working correctly). There's no reason why it shouldn't work.
    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."

  6. #6
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,258
    Quote Originally Posted by rtgree01 View Post
    I thought I was doing that....

    Here is a snippet of code for ReturnLabel. There are more labels that I "override" in the same manner. Did I forget something?

    Code:
    public string ReturnLabel(string LBL, string FMT)
    {
    	string s = "";
    
    	if ((initd) && (active))
    	{
    		switch (LBL.ToLower())
                    {
                        case "trackname":
                        case "tagtitle":
                            s = radio.siriusTextLine[3].Substring(0, radio.siriusTextLine[3].IndexOf('\0'));
                            LBL = "";
                            break;
    
                        case "tagartist":
                            s = radio.siriusTextLine[4].Substring(0, radio.siriusTextLine[4].IndexOf('\0'));
                            LBL = "";
                            break;
    		}
    
    	return s;
    }
    It looks like RR is appending to the label that I am filling.
    haha.... hahahahah
    hehehe, no one notices anything

    public string ReturnLabel(ref string LBL, ref string FMT)

    also add it to the interface
    string ReturnLabel(ref string LBL, string FMT);
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

  7. #7
    Low Bitrate rtgree01's Avatar
    Join Date
    Aug 2007
    Location
    STL
    Posts
    98
    The "ref" must have been it...

    I'm going to have to check the original plugin example code... I don't think that I retyped any of this... Is it possible that the example has this bug?

    Thanks a bunch... another thing I'm going to need to check on is how the skin (Elite Wings) handles switching between audio sources. When going from audio to radio to my sirius, I'm going to have to figure out how/when to turn on and off my audio...

    Thanks a bunch... You guys are awesome at supporting the community!

    Ryan

  8. #8
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,258
    its not a "bug" its just whats needed

    skin names trigger audio in most cases
    becuase RR is SKIN based, not source based
    SETSOURCE could be your friend
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

  9. #9
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,856
    Quote Originally Posted by mitchjs View Post
    its not a "bug" its just whats needed

    skin names trigger audio in most cases
    becuase RR is SKIN based, not source based
    SETSOURCE could be your friend
    How do you use SETSOURCE please.

    Can you give me an example ?

  10. #10
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,258
    setsource:
    from the documentation

    "SETSOURCE" - Sets the current Audio Input Source. Not available to switch to VIEWABLE inputs (i.e. video, dvd, tv).
    Not available while in "audio_player.skin", "audio_browser.skin", "rm_media.skin", "radio_player.skin", "sirius.skin" or "xm.skin" (for obvious reasons)
    Possible paramters are: RADIO, XM, SIRIUS, AUDIO
    Examples: "SETSOURCE;RADIO" (switches to radio without changing current screen)
    "SETSOURCE;AUDIO" (switches to mp3/music without changing current screen)
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

Page 1 of 2 12 LastLast

Similar Threads

  1. What Windows Version do you use with RR ?
    By guino in forum Road Runner
    Replies: 71
    Last Post: 11-27-2010, 12:30 PM
  2. OEM Navigation Connectors
    By Mr Castulucci in forum General Hardware Discussion
    Replies: 15
    Last Post: 07-20-2010, 06:25 PM
  3. Unable to locate source of Audio Ground Loop / Noise
    By phuz in forum General Hardware Discussion
    Replies: 7
    Last Post: 05-25-2008, 12:01 PM
  4. multi source audio integration via amps
    By theonlykid in forum Car Audio
    Replies: 0
    Last Post: 11-21-2005, 07:42 PM
  5. Replies: 22
    Last Post: 01-03-2005, 04:44 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
  •