Announcement

Collapse
No announcement yet.

New Audio Source

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

  • 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
    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

    Comment


    • #3
      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.

      Comment


      • #4
        I also wanted to mention that the name of my skin file is not sirius.skin... Could that be the problem?

        Comment


        • #5
          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."

          Comment


          • #6
            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

            Comment


            • #7
              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

              Comment


              • #8
                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

                Comment


                • #9
                  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 ?

                  Comment


                  • #10
                    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

                    Comment


                    • #11
                      Ok thanks yoouu

                      Comment


                      • #12
                        So.... I have written my own plugin to handle most if not all labels for the Sirius source... One issue I am having is that I am unable to get RideRunner to change the activesourceid to change to the sirius source. I have looked around in the documentation for all the commands, labels, and indicators that the Sirius source is supposed to respond to. There isn't really a good list. I'm wondering if the documentation could get updated to show what sources respond to what commands, etc.
                        Back to the activesourceid issue... is it possible that setsource;sirius will only respond to RideRunner's built in Sirius option?

                        Maybe i'm not doing something right... Any thoughts?

                        All this because I want my steering wheel buttons to do different things depending on what the active source is...

                        Thanks

                        Comment

                        Working...
                        X