Announcement

Collapse
No announcement yet.

linein and activesource

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

  • linein and activesource

    hi all, i've nearly end the edited version of a skin i'm working on, but i got problems with Line In and activesource, i explain.
    Line In can be played over any sound, music, radio, video, etc.. so i worked on a system that if line in (Aux) is selected then is the only one that work, here is the code:
    Code:
    "checkaudio","ByIndX;Vol;Linea In Ingresso;(Mute;Linea in ingresso;True<<)||SETVAR;ack;True||audio"
    "checkradio","ByIndX;Vol;Linea In Ingresso;(Mute;Linea in ingresso;True<<)||SETVAR;ack;True||radio"
    "checkvideo","ByIndX;Vol;Linea In Ingresso;(Mute;Linea in ingresso;True<<)||SETVAR;ack;True||video"
    "checkdvd","ByIndX;Vol;Linea In Ingresso;(Mute;Linea in ingresso;True<<)||SETVAR;ack;True||dvd"
    "checkdvb","ByIndX;Vol;Linea In Ingresso;(Mute;Linea in ingresso;True<<)||SETVAR;ack;True||dvb"
    "aux_check","IFVAR;ack=True;aux_error<<Mute;Linea in ingresso"
    I've put a var that check if the current screen belong to a source, and it works pretty well, it mute/unmute Line In depending the current skin
    The problem is that i need a way set a virtual ACTIVESOURCEID / ACTIVESOURCE for Line In, and since i don't have XM and Sirius i tryed to use them.. but if i set XM or Sirius once i change skin the ActiveSource change back to the previous one (one that works)
    There is a way to emulate the ActiveSouce? or if there is one for Line In (there is nothing about line in on documentation)
    Thanks

  • #2
    Originally posted by Diavoletto View Post
    There is a way to emulate the ActiveSouce? or if there is one for Line In (there is nothing about line in on documentation)
    Thanks
    http://www.mp3car.com/road-runner/15...sourceids.html

    http://www.mp3car.com/road-runner/15...esourceid.html
    HARDWARE: Fujitsu Stylistic ST5111w/WiFi and dock, internal Hitachi 500G HD, external 1TB HD, Sierra Wireless Aircard 550, DVD-RW, BoomzBox HD radio, XM Commander, Delorme GPS, Saitek X-52 Pro joystick, BluSoleil Bluetooth, TPMS, FB, Elm327

    Comment


    • #3
      thanks for the reply, i had seen the first link but i didn't understand much, for example about "ACTIVESOURCEGUID" there are no info on documentation but using skin tool (for example haveing radio as source) the value ACTIVESOURCEGUID is 2radio2.
      About the second link i've read the code but i didn't understand also how it could help , for what i read you use 2 vars "CURRENTSOURCE" and "lastaudio" (for recorver the status) but how currentsource works for activate a source like SETSOURCE?
      SETSOURCE works only with predefined names (radio, audio, xm, sirius), and activesourceid goes up to 10 for custom plugin (tv 9, webradio 10)
      Would be usefoul an 11th for LineIn, as far i know prettymuch any motherboard has a line in connector

      Comment


      • #4
        i've made it, finally
        now i have XM source as Empty
        and SIRIUS as LINEIN/AUX

        here is the code i'm using:
        Code:
        "ONSOURCECHANGE","ByIndX;Vol;Linea In Ingresso;(SETSOURCE;SIRIUS<<IFVAR;ACTIVESOURCEID=4;SETSOURCE;$auxsd$)"
        "ONSUSPEND","IFVAR;ACTIVESOURCEID=4;check$auxsd$"
        "ONEXIT","IFVAR;ACTIVESOURCEID=4;check$auxsd$"
        "checkaudio","ByIndX;Vol;Linea In Ingresso;(Mute;Linea in ingresso;True<<)||SETVAR;ack;True||audio"
        "checkradio","ByIndX;Vol;Linea In Ingresso;(Mute;Linea in ingresso;True<<)||SETVAR;ack;True||radio"
        "checkvideo","ByIndX;Vol;Linea In Ingresso;(Mute;Linea in ingresso;True<<)||SETVAR;ack;True||video"
        "checkdvd","ByIndX;Vol;Linea In Ingresso;(Mute;Linea in ingresso;True<<)||SETVAR;ack;True||dvd"
        "checkdvb","ByIndX;Vol;Linea In Ingresso;(Mute;Linea in ingresso;True<<)||SETVAR;ack;True||dvb"
        "checkgame","ByIndX;Vol;Linea In Ingresso;(Mute;Linea in ingresso;True<<)||SETVAR;ack;True||games_select"
        "aux_check","IFVAR;ack=True;aux_error<<Mute;Linea in ingresso||aux_set"
        "aux_set","IFVAR;ACTIVESOURCEID=4;SETSOURCE;$auxsd$<<SETVARBYCODE;auxsd;ACTIVESOURCE||SETSOURCE;SIRIUS"
        "checksource","SETVARBYCODE;csn;RRSCREEN||IFVAR;csn=audio_player.skin;SETVAR;ack;False||IFVAR;csn=radio_player.skin;SETVAR;ack;False||csvideo||csdvd||csdvb||csgame  "
        "csvideo","IFVAR;csn=video_player.skin;SETVAR;ack;False"
        "csdvd","IFVAR;csn=dvd_player.skin;SETVAR;ack;False"
        "csdvb","IFVAR;csn=dvb.skin;SETVAR;ack;False"
        "csgame","IFVAR;csn=games_select.skin;SETVAR;ack;False"
        "aux_error","SETVAR;WARNINGMESSAGE;Altra sorgente in uso, per usare la linea AUX assicurati di non trovarti nei mený: Musica, Radio, Video, DVD, Televisione. Attenzione nella sezione giochi nessun audio Ť ammesso||SETVAR;WARNINGMESSAGENOTICE;MESSAGGIO||Menu;message.skin"
        all the commands starting with check- will set the variables and mute the aux
        so when in media pages (audio, video, radio, dvb, games, etc) the aux will be muted and the variable for check will be set

        the checksource will be set on the "back" button, it set a particular back button that restore the variable for set aux (again, it will make impossible for activate aux under media sections)


        Anyway i would suggest to the dev team, if possible, to add atleast 2 more SOURCES (for example 13 = Aux, 14 = Empty)

        Comment


        • #5
          a plugin would simplify all you work... course u need to know vb or c# or something

          could actually make an custom source line in plugin, officially there is no source that is just line-in
          -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


          • #6
            yes the problem is coding a plugin XD
            just got some knowlage on vb nearly nothing on c# or c++
            a line in source would be awsome, i'm aware that the system i've write using RR use some resource (variables, and actions any screen change) so a simple ACTIVESOURCE would be very lighter and easyer.
            About the one Empty is just for skinning, there are some sections that is possible to manage better using an empty source without music (for example in my game section i don't whant the possibility to play anykind of music, or in the phone section) and just stopping the music / radio / player needs to put variables to prevent the use of voice commands or Hotkeys

            Comment

            Working...
            X