View Single Post
Old 02-11-2007, 12:54 PM   #22
stric
Variable Bitrate
 
Join Date: Sep 2004
Location: Slovenia (EU)
Posts: 313
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 12:57 PM.
stric is offline   Reply With Quote