Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: RR Slider Style issue

  1. #1
    Maximum Bitrate Robby BMW's Avatar
    Join Date
    Aug 2005
    Location
    Italy
    Posts
    558

    Exclamation RR Slider Style issue

    I've found a little issue with sliders style in RR. In Skin Commands.txt is indicated an images range from 0 to 20 (21 images), but i've noticed that in some sliders (main volume, balance, and all the mixer levels) the real range is from 0 to 19 (20 images).
    I think that the problem is caused by some rounded values inside the code.

    Guino, may I suggest these changes in modMixer.bas:

    Public Sub DoVol(ByVal Idx As Integer, Optional ByVal UP As Boolean = True)
    ...
    'Get Vol%
    VolPct = MixerState(Idx).MxrVol / 655.36

    'If No Volume Table
    If UBound(VolTable, 2) = 0 Then
    ...
    'Set Volume
    MixerState(Idx).MxrVol = VolPct * 655.36
    AdjustOutput Idx: GetMixerInfo
    ...


    and these ones in frmSkin.frm:

    Public Sub UpdateSliders()
    ...
    Case "balance"
    Value = Balance * 655.36
    ...
    Case "freq1", "freq2", "freq3", "freq4", "freq5", "freq6", "freq7", "freq8", "freq9", "freq10"
    Value = 65536 - WinAMP_GetEQValue(Val(Mid(.CODE, 6)) - 1) * 1040.25
    ...
    Case "preampvol"
    Value = 65536 - WinAMP_GetPreAmpValue * 1040.25
    ...
    'Set Background (if any)
    If .Style <= UBound(Styles) Then
    BackPath = Replace(SKIN_PATH + Styles(.Style), "*", CStr(Value \ 3120.76))
    ...

  2. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    I've applied the changes. Thanks.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  3. #3
    Low Bitrate
    Join Date
    Nov 2004
    Location
    UK
    Posts
    102
    I'm still seeing a similar problem - not all images are shown in the right order. The sequence seems to show image 3 twice, and not show 20 at all.

    It appears that there are 21 steps between bottom and top - just not the correct images associated with them all.

    Does anybody else see this behaviour?

    Ian

  4. #4
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    What slider code are you using to test it ?

    Also, the above could easily happen for instance if RR could not load image 20 for instance. I have seen compressed GIF files that don't work in RR for instance, so in doubt, swap the number of two files and see if both files do work in different positions.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  5. #5
    Low Bitrate
    Join Date
    Nov 2004
    Location
    UK
    Posts
    102
    I'm seeing it with all the mixer sliders in the E36 skin.

    I've tried renaming the affected gif images, and deleting them and recreating them, but there is no change

    Ian

  6. #6
    Newbie
    Join Date
    Apr 2007
    Posts
    34
    I hate to wake up a dead topic but this fits my problem to a T. I can't seem to find an answer to this problem. All the sliders seem to repeating postion 0 twice or something and position 20 is isn't being read. It also does this for the clicking position...for example if I click on a region in a song the bar moves to the region previous to the one I click on. Anyone else having this problem?

  7. #7
    Maximum Bitrate Robby BMW's Avatar
    Join Date
    Aug 2005
    Location
    Italy
    Posts
    558
    This issue can be fixed easily by changing this two lines in the code, but this could cause that the previous skins need to be fixed.

    Case "songpos"
    If XMON Then
    If XMTrackTime > 0 Then Value = ((XMTime + Timer - XMTimer) / XMTrackTime) * 65535 Else Value = 0
    If Value > 65535 Then Value = 65335
    Else
    Value = (Player.GetTrackPosition / Player.GetTrackLength) * 65536
    If Value > 65536 Then Value = 65336 <-- ADD THIS LINE
    End If
    .
    .
    .
    .
    'Set Background (if any)
    If .Style <= UBound(Styles) Then
    BackPath = Replace(SKIN_PATH + Styles(.Style), "*", CStr(Value \ 3120.76)) <--CHANGE THIS VALUE
    If ImgBack(c).Tag <> BackPath Then
    'Load new image
    Set ImgBack(c) = New cBitmap
    ImgBack(c).FromFile BackPath
    ImgBack(c).Tag = BackPath
    End If
    'Draw Back
    DrawIMG DCPic(4).HDC, (.x * W) / OW, (.y * H) / OH, (.W * W) / OW, (.H * H) / OH, ImgBack(c), &HFF00FF
    End If
    _______________________________________
    Car installation 95% [■■■■■■■■■■■■■■■■■■■]
    Current project: Parking sensor USB interface

  8. #8
    Newbie
    Join Date
    Apr 2007
    Posts
    34
    Umm....thanks Robby. Excellent skin by the way! I just wish I knew how to get to the code to fix it

  9. #9
    Newbie
    Join Date
    Apr 2007
    Posts
    34
    Seriously....how do I get to that code to fix it? I assume it's in the RoadRunner exe but I did some searching and from what I can tell it's rather difficult to change a compiled exe. I know nothing about coding.

  10. #10
    Maximum Bitrate Robby BMW's Avatar
    Join Date
    Aug 2005
    Location
    Italy
    Posts
    558
    The changes must be applied in the source code, then recompiled in a new binary.
    _______________________________________
    Car installation 95% [■■■■■■■■■■■■■■■■■■■]
    Current project: Parking sensor USB interface

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 03-20-2006, 09:32 PM
  2. Problem with the volume level slider
    By DaveB in forum Road Runner
    Replies: 1
    Last Post: 03-12-2006, 11:27 PM
  3. RR, FD and window issue
    By kocke in forum Road Runner
    Replies: 7
    Last Post: 03-12-2006, 02:37 PM
  4. RR Interchange - Update RR via a USB Media Stick
    By Gobby in forum Road Runner
    Replies: 60
    Last Post: 10-04-2005, 04:48 PM
  5. status update....
    By 0l33l in forum PowerVoice
    Replies: 17
    Last Post: 05-05-2005, 12:22 PM

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
  •