Latest WACUP beta release is build #8282 (July 23rd 2021)

Latest WACUP public preview is build #7236 (March 11th 2021)

Author Topic: Duplicate bitrate number puzzles me  (Read 704 times)

ariszlo

  • Moderator
  • Hero Member
  • *****
  • Posts: 119
    • View Profile
Duplicate bitrate number puzzles me
« on: January 22, 2021, 10:10:39 PM »
This is an update of an old skin from 2003. So far I have fixed whatever I could but there is an issue I cannot figure out what causes it. In addition to the position defined in player-normal-group.xml, bitrate value is also displayed north-west of the main window. I have looked through player-normal-group.xml and blinker.m several times but I still have no idea what puts it there.
« Last Edit: January 22, 2021, 10:11:57 PM by ariszlo »

ariszlo

  • Moderator
  • Hero Member
  • *****
  • Posts: 119
    • View Profile
Re: Duplicate bitrate number puzzles me
« Reply #1 on: January 24, 2021, 02:33:38 PM »
Figured it out. Adding alpha="0" to the following tag in player-normal-group.xml fixes it:

  <text
    id="hidden"
    display="songinfo" default=""
    x="0" y="0"
    w="16" h="16"
    font="Tahoma" fontsize="12" color="0,0,0" alpha="0" ghost="1"
  />

Eris Lund

  • Almost a full-time hobby Modern Skinner
  • Moderator
  • Hero Member
  • *****
  • Posts: 150
    • View Profile
    • Eris Lund's Github
Re: Duplicate bitrate number puzzles me
« Reply #2 on: January 25, 2021, 07:55:54 AM »
looks like it relates to something in blinker.m
I made that one skin that one time.
https://github.com/0x5066/Winamp2000SP4

ariszlo

  • Moderator
  • Hero Member
  • *****
  • Posts: 119
    • View Profile
Re: Duplicate bitrate number puzzles me
« Reply #3 on: January 25, 2021, 06:11:03 PM »
looks like it relates to something in blinker.m

Actually, it shows even if you comment out this line in player.xml:
<script id="blinker" file="scripts/blinker.maki"/>

What blinker.m has to do with it is that it gets songinfo from the "hidden" tag of player-normal-group.xml, from which it extracts the bitrate to be displayed in the area defined by the "Bitnum" tag and stereo/mono to be displayed in the area defined by the "stereostrg" tag.

The coordinates of the "hidden" tag of player-normal-group.xml define the area exactly where the duplicate bitrate number is displayed.