title
Products            Buy            Support Forum            Professional            About            Codec Central
 
Results 1 to 5 of 5

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

  1. #1
    dBpoweramp Enthusiast
    Join Date
    Nov 2008
    Posts
    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

  2. #2
    Administrator
    Join Date
    Apr 2002
    Posts
    43,855

    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.

  3. #3
    dBpoweramp Enthusiast
    Join Date
    Nov 2008
    Posts
    296

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

    Quote Originally Posted by Spoon View Post
    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?

  4. #4
    Administrator
    Join Date
    Apr 2002
    Posts
    43,855

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

    Perhaps

  5. #5
    dBpoweramp Enthusiast
    Join Date
    Nov 2008
    Posts
    296

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •