The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > StreetDeck > DigitalMods (Scripts / API)

Reply
 
Thread Tools Display Modes
Old 04-24-2007, 07:55 PM   #1
Newbie
rburhum's CarPC Specs
 
rburhum's Avatar
 
Join Date: Mar 2007
Location: SoCal, USA
Vehicle: 2002 Audi TT Roadster / 2000 Isuzu Rodeo
Posts: 40
My Photos: (0)
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?
rburhum is offline   Reply With Quote
Sponsored Links
Old 04-25-2007, 08:11 PM   #2
Raw Wave
 
god_of_cpu's Avatar
 
Join Date: Jan 2004
Location: SilverSpring Maryland
Vehicle: 2003/Infiniti/G35 Sport Coupe
Posts: 2,957
My Photos: (0)
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.
god_of_cpu is offline   Reply With Quote
Old 04-25-2007, 10:16 PM   #3
Newbie
rburhum's CarPC Specs
 
rburhum's Avatar
 
Join Date: Mar 2007
Location: SoCal, USA
Vehicle: 2002 Audi TT Roadster / 2000 Isuzu Rodeo
Posts: 40
My Photos: (0)
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?
rburhum is offline   Reply With Quote
Old 04-26-2007, 01:57 PM   #4
Constant Bitrate
sharpmat007's CarPC Specs
 
sharpmat007's Avatar
 
Join Date: Nov 2006
Location: Washington, DC
Vehicle: 2006 Mitsubishi Eclipse
Posts: 213
My Photos: (0)
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
sharpmat007 is offline   Reply With Quote
Old 04-26-2007, 02:53 PM   #5
Newbie
rburhum's CarPC Specs
 
rburhum's Avatar
 
Join Date: Mar 2007
Location: SoCal, USA
Vehicle: 2002 Audi TT Roadster / 2000 Isuzu Rodeo
Posts: 40
My Photos: (0)
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).
rburhum is offline   Reply With Quote
Old 04-26-2007, 03:10 PM   #6
Constant Bitrate
sharpmat007's CarPC Specs
 
sharpmat007's Avatar
 
Join Date: Nov 2006
Location: Washington, DC
Vehicle: 2006 Mitsubishi Eclipse
Posts: 213
My Photos: (0)
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
sharpmat007 is offline   Reply With Quote
Old 04-26-2007, 03:16 PM   #7
Newbie
rburhum's CarPC Specs
 
rburhum's Avatar
 
Join Date: Mar 2007
Location: SoCal, USA
Vehicle: 2002 Audi TT Roadster / 2000 Isuzu Rodeo
Posts: 40
My Photos: (0)
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.
rburhum is offline   Reply With Quote
Old 04-26-2007, 03:27 PM   #8
Constant Bitrate
sharpmat007's CarPC Specs
 
sharpmat007's Avatar
 
Join Date: Nov 2006
Location: Washington, DC
Vehicle: 2006 Mitsubishi Eclipse
Posts: 213
My Photos: (0)
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
sharpmat007 is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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


All times are GMT -5. The time now is 10:15 PM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics