title
Products            Buy            Support Forum            Professional            About            Codec Central
 

Bug: .ReadIDTagElementValue and .AudioProperties give wrong rating on WMA

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chrisjj
    dBpoweramp Enthusiast
    • Nov 2008
    • 296

    Bug: .ReadIDTagElementValue and .AudioProperties give wrong rating on WMA

    e.g.

    * with WM/SharedUserRating = 0, .ReadIDTagElementValue reports 2 and .AudioProperties reports 1

    * with WM/SharedUserRating = 128 .ReadIDTagElementValue reports 10 and .AudioProperties reports 5

    * with WM/SharedUserRating = 255, .ReadIDTagElementValue reports 10 and .AudioProperties reports 5


    dbScripting.DLL 13.3.0.2

    Demo vbscript


    '' DMC Rating bug

    filename= "tempratingset.wma"
    r = 0
    dMC.WriteIDTag filename,"Rating",r
    WScript.StdOut.Write("Setting rating to "&r&vbCrLf)

    For each e in Split(dMC.AudioProperties(filename) ,VbCr)
    if Instr(e,"Rating :")<>0 then WScript.StdOut.Write(".AudioProps says: "&e&vbCrLf) ' for 0 reports 1!
    next

    For i = 0 To 10000
    keyvalue = dMC.ReadIDTagElementValue(filename, i)
    If Instr(keyvalue,"Rating:")<>0 then
    WScript.StdOut.Write(".ReadIDTagElementValue says "&keyvalue&VbCrLf) '' for 0 reports 2!
    exit For
    end if
    Next
  • Spoon
    Administrator
    • Apr 2002
    • 43889

    #2
    Re: Bug: .ReadIDTagElementValue and .AudioProperties give wrong rating on WMA

    Our tag reader has to map the tag values to a 0-10 range so they can go to other codecs, so the ratings are approximations for WMA.
    Spoon
    www.dbpoweramp.com

    Comment

    • chrisjj
      dBpoweramp Enthusiast
      • Nov 2008
      • 296

      #3
      Re: Bug: .ReadIDTagElementValue and .AudioProperties give wrong rating on WMA

      Originally posted by Spoon
      Our tag reader has to map the tag values to a 0-10 range so they can go to other codecs, so the ratings are approximations for WMA.
      Thanks. Is WM/SharedUserRating the only property not reported faithfully?

      Comment

      • Spoon
        Administrator
        • Apr 2002
        • 43889

        #4
        Re: Bug: .ReadIDTagElementValue and .AudioProperties give wrong rating on WMA

        Perhaps
        Spoon
        www.dbpoweramp.com

        Comment

        • chrisjj
          dBpoweramp Enthusiast
          • Nov 2008
          • 296

          #5
          Re: Bug: .ReadIDTagElementValue and .AudioProperties give wrong rating on WMA

          If anyone has any details about the extent of this function's false reporting of property values, please do say. Thanks.

          Comment

          Working...

          ]]>