Results 1 to 8 of 8

Thread: Getting handle to pre-existing modules

  1. #1
    Newbie rburhum's Avatar
    Join Date
    Mar 2007
    Location
    SoCal, USA
    Posts
    40

    Getting handle to pre-existing modules

    All the samples that I see are to create new modules and register for notification of events of that modue, but I don't see any to listen to pre-existing System Modules. How can I get a handle to preexisting modules?

  2. #2
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    You don't. The way to modify system modules is through making a new skin. If you want to add functionality to a module, the only way to do it is to make an overlay that is restricted to a particular module.
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

  3. #3
    Newbie rburhum's Avatar
    Join Date
    Mar 2007
    Location
    SoCal, USA
    Posts
    40
    Quote Originally Posted by god_of_cpu View Post
    You don't. The way to modify system modules is through making a new skin. If you want to add functionality to a module, the only way to do it is to make an overlay that is restricted to a particular module.
    I got my problem solved yesterday, but only through a series of hacks which probably are not the proper way of solving them. I (and am sure others here, too) would appreciate if you could comment on the approach I used to solve my problem. We can all learn from some criticism of the 'correct' approach.


    - Problem: After coming back from hibernate the radio doesn't work on T3.
    - 'Workaround': Create a 'Restart SD' button on Radio System module
    - Procedure of my ghetto solution due to my ignorance of the SD API:

    1.- Skin the radio system module and add a button captioned "RestartSD Radio".

    2.- Hack #1: Since I couldn't find a way to register for an 'OnClick' of the button, I wrote a C# adding that created a custom 'exit module'; Since I can listen for an event that does the transition in, I can fire my "restart" code that way.

    3.- Hack #2:
    Since there is not way to tell SD to restart, I wrote a C++ app that monitor SD by process id every half a second and restarts it once it has shutdown. This app doesn't always run. The way it works is that once someone enters my 'exit module', the C# code will spawn the C++ app that does the monitoring, and then the C# code will trigger the shutdown of SD. The C++ app goes away once it has already restarted SD.

    So now, everytime my radio doesn't work, I just press the restart sd button and everything works fine once again.

    Did I take the long route?

  4. #4
    Constant Bitrate sharpmat007's Avatar
    Join Date
    Nov 2006
    Location
    Washington, DC
    Posts
    211
    I have the same issue when returning from hibernate. If you start playing an mp3 then switch back to radio you get it working again without having to restart SD. I think it might even be the line input getting muted and staying muted after resuming from hibernate, but havent had time to confirm.

    Can you test that on yours and let me know?
    Mitsubishi Eclipse 2006 GT
    Infill T3 running StreetDeck

  5. #5
    Newbie rburhum's Avatar
    Join Date
    Mar 2007
    Location
    SoCal, USA
    Posts
    40
    I tried that already, and it doesn't work for me 100% of the time. I originally tought that it was something with a line remaining muted.... doesn't seem to be that (I go to the regular Windows Sounds Volume control and have ALL the possible outputs listed.. none of them have the check on mute when the problem happens).

  6. #6
    Constant Bitrate sharpmat007's Avatar
    Join Date
    Nov 2006
    Location
    Washington, DC
    Posts
    211
    So you do have some success when you switch between sources(IE play an mp3 and then switch back to radio)? I also have it drop out sometimes if I try to adjust fader/balance...you have this issue too?
    Mitsubishi Eclipse 2006 GT
    Infill T3 running StreetDeck

  7. #7
    Newbie rburhum's Avatar
    Join Date
    Mar 2007
    Location
    SoCal, USA
    Posts
    40
    I never have the problem when I switch from sources. Only when coming back from hibernate

    If you are having problems when switching between sources it is probably because your SD Settings (as far as input lines) are incorrect.

  8. #8
    Constant Bitrate sharpmat007's Avatar
    Join Date
    Nov 2006
    Location
    Washington, DC
    Posts
    211
    Clarification: I dont have issues when switching sources. I meant that when I resume from hibernate and the radio doesnt play audio, I can switch to another source and then back to radio to get it working again.
    Mitsubishi Eclipse 2006 GT
    Infill T3 running StreetDeck

Similar Threads

  1. Scripted modules
    By 06TC_OWNER in forum DigitalMods (Scripts / API)
    Replies: 8
    Last Post: 10-25-2006, 12:45 AM
  2. Importing Modules from Different Skins
    By god_of_cpu in forum StreetDeck Skins
    Replies: 1
    Last Post: 08-02-2006, 08:07 AM
  3. Door handle
    By i3igmind in forum Car Audio
    Replies: 2
    Last Post: 05-23-2005, 02:19 AM
  4. FS: More 7" video modules
    By digitalww in forum Classified Archive
    Replies: 18
    Last Post: 12-29-2004, 01:19 AM
  5. can 90w opus handle...
    By Nico3k in forum Power Supplies
    Replies: 4
    Last Post: 03-08-2004, 07:14 AM

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
  •