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 > Centrafuse > CF Plugins

Reply
 
Thread Tools Display Modes
Old 02-04-2007, 04:41 PM   #16
Maximum Bitrate
 
Join Date: Jul 2006
Posts: 614
My Photos: (5)
sure, thanks! if you have too much on your plate, just send me the relevant function and i should be able to edit it for you and send it right back shouldnt take very long at all.
hari-bhari is offline   Reply With Quote
Sponsored Links
Old 02-04-2007, 07:03 PM   #17
Raw Wave
 
justintime's Avatar
 
Join Date: Apr 2005
Vehicle: 2002 Honda CR-V
Posts: 2,699
My Photos: (0)
stric: If you do redesign it, I think I see a problem. How will your code determine the 'intended' reference volume? If the plugin is constantly changing the volume for you, then how will it know when I manually change it up/down, and set a new reference volume? (won't it be confused, given that the volume is constantly changing anyway? How will the code differentiate between a manual up/down volume, vs the plugin changing it as part of the adaptive volume schemes?)
__________________
2002 Honda CR-V
Carputer progress: 90% [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ -]
Spent so far: $1105.90


Download the NEXUS Skin for Centrafuse
...or even Listen to my music
justintime is offline   Reply With Quote
Old 02-04-2007, 11:22 PM   #18
Maximum Bitrate
 
Join Date: Jul 2006
Posts: 614
My Photos: (5)
Quote: Originally Posted by justintime View Post
stric: If you do redesign it, I think I see a problem. How will your code determine the 'intended' reference volume? If the plugin is constantly changing the volume for you, then how will it know when I manually change it up/down, and set a new reference volume? (won't it be confused, given that the volume is constantly changing anyway? How will the code differentiate between a manual up/down volume, vs the plugin changing it as part of the adaptive volume schemes?)

i thought of this exact issue. the way i see it, there are two solutions. they are as follows

1) The first option would be to follow a similar procedure as to what i listed above. there is no need to track a reference volume, only to track the current volume. any time the driver's speed crosses into a new threshold (we'll call 10-30mph level 1, 30-50mph level 2, etc), the current volume will be adjusted up or down by a fixed amount. so if a driver is in speed level 1, and he crosses into level 2, the current volume would be adjusted up by a fixed amount, and vice versa. this, i think would be the simplest solution, and would compensate for any manual volume adjustments during driving. it would meet the basic goal of turning the volume up when speeding up, and down while decelerating. This method would be easily overridden by manual adjustments and not interfere with the driver's choice, because it would simply provide CF with a volume up or down command.

2) The second procedure is a little more intricate but may work better. This would involve tracking two volumes, the user set, and the current. User set would be what the driver manually chooses at any given point. The current volume would be based off the user set and increased and decreased according to speed. However, if the volume is manually changed, that volume would become the new user set, and all future current volumes would be based on that value. This method may work a little bit better in allowing more precise control of volume, for example, based on a logarithmic curve of the user set.

Personally, I think option one would be the easiest to program and implement. The user could have three options (as in the Hummer) of how aggressive they would like their volume adjustments. Minimum could provide +/- adjustments of 5 points, Medium could be 10 points, and Maximum could be 15 points. The only trouble I see with using fixed increase/decrease values is that what happens if you have it set to volume 20 at 70mph, and then stop at a traffic light, your volume would hit zero. However, option 2 might be little tougher, but ultimately provide the best solution. It really only involves tracking one more variable, which is the volume that the user manually sets at any given point, which would override any automatic changes.

Anyways, let me know what you guys think or if I could be of any assistant. This feature would be very cool and nice to have, especially for people like me. After upgrading my suspension and putting bigger wheels and tires on, my ride is definitely noisier on a the highway (not that I mind the tradeoff :-) )

I'll try and come up with a pseudo-code algorithm in the next couple of days and post it up here for you guys to ponder over.

Last edited by hari-bhari : 02-04-2007 at 11:32 PM.
hari-bhari is offline   Reply With Quote
Old 02-07-2007, 02:48 AM   #19
Variable Bitrate
 
Join Date: Sep 2004
Location: Slovenia (EU)
Posts: 313
My Photos: (0)
Justintime you have a point here.
I will look into second solution of hari-bhari at the end of the week. It seems good if I understand it correctly.
hari-bhari: I will also send you the part of code so you can change it.
stric is offline   Reply With Quote
Old 02-11-2007, 11:34 AM   #20
Variable Bitrate
 
Join Date: Sep 2004
Location: Slovenia (EU)
Posts: 313
My Photos: (0)
Hi,

here is new .dll file that sets the volume befoure you hibernate or go to standby. I haven't try hibernate so please can someone test it and report.
Befoure it set when you were resuming ...
Please try and report.
Attached Files
File Type: zip volume.zip (5.7 KB, 27 views)
stric is offline   Reply With Quote
Sponsored Links
Old 02-11-2007, 11:46 AM   #21
Maximum Bitrate
 
Join Date: Jul 2006
Posts: 614
My Photos: (5)
Quote: Originally Posted by stric View Post
Justintime you have a point here.
I will look into second solution of hari-bhari at the end of the week. It seems good if I understand it correctly.
hari-bhari: I will also send you the part of code so you can change it.

any word on that code?
hari-bhari is offline   Reply With Quote
Old 02-11-2007, 11:54 AM   #22
Variable Bitrate
 
Join Date: Sep 2004
Location: Slovenia (EU)
Posts: 313
My Photos: (0)
Oh sorry forget it. OK here it is.
Code:
public void TimerEvent(object source, EventArgs e) { try { speed = int.Parse(this.CF_getGPSInfo(centrafuse.Plugins.CF_GPSInfo.SPEED)); if(speed<=spee1) this.CF_setMixerLevel(CF_MixerDevices.MAIN,val1); else if((speed<=spee2)) this.CF_setMixerLevel(CF_MixerDevices.MAIN,val2); else if((speed<=spee3)) this.CF_setMixerLevel(CF_MixerDevices.MAIN,val3); else if((speed<=spee4)) this.CF_setMixerLevel(CF_MixerDevices.MAIN,val4); else this.CF_setMixerLevel(CF_MixerDevices.MAIN,val5); } catch(Exception errmsg) { CFTools.writeError(errmsg.Message, errmsg.StackTrace); } }


Last edited by stric : 02-11-2007 at 11:57 AM.
stric is offline   Reply With Quote
Old 02-11-2007, 12:00 PM   #23
Variable Bitrate
 
Join Date: Sep 2004
Location: Slovenia (EU)
Posts: 313
My Photos: (0)
This is actually event that is fired every X seconds. (You set X in settings as frequency).
It than only checkes in which range current speed is and sets the volume to apropriate value.
stric is offline   Reply With Quote
Old 03-04-2007, 08:18 PM   #24
Lum
Variable Bitrate
 
Lum's Avatar
 
Join Date: Jan 2005
Location: Liverpool, England
Vehicle: 1999 JDM Subaru Legacy B4 RSK
Posts: 334
My Photos: (0)
Quote: Originally Posted by stric View Post
I think it should work when resuming from hibernating. Could you try and let me know?.

Well, I've finally gotten around to trying this. Using the version on the Flux website, it works fine from hibernate, a vast improvement over standard CF which always comes back up at full volume for me.

I haven't tried the new DLL you've posted, since setting it before shutdown seems like a bad idea given the bug I'm suffering. Not sure why you'd want to set it then to be honest.
Lum is offline   Reply With Quote
Old 03-05-2007, 09:55 AM   #25
Variable Bitrate
 
Join Date: Sep 2004
Location: Slovenia (EU)
Posts: 313
My Photos: (0)
Some people say it would be better to set it befoure. I could even do both
stric is offline   Reply With Quote
Old 03-05-2007, 04:43 PM   #26
Lum
Variable Bitrate
 
Lum's Avatar
 
Join Date: Jan 2005
Location: Liverpool, England
Vehicle: 1999 JDM Subaru Legacy B4 RSK
Posts: 334
My Photos: (0)
Well, after the third or 4th sucessful startup, CF once again resumed at full volume, even with this plugin.

I've since found a workaround in the new version of CF anyways, so don't worry about it.
Lum 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
Survey: Startup times and methods gnomad General MP3Car Discussion 56 01-02-2007 11:55 AM
auto volume control Phythorian Road Runner 27 07-22-2005 05:36 PM
winamp auto volume? boostedGT-S Road Runner 3 07-12-2005 08:00 PM
Problem: Master Volume at 100% at startup digitboy74 Road Runner 3 05-03-2005 02:24 PM
Safe Volume at Startup Feature shakes MediaCar 0 04-15-2004 09:55 PM


All times are GMT -5. The time now is 01:42 AM.


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