wlschmidt / lcdmiscellany

Automatically exported from code.google.com/p/lcdmiscellany
1 stars 1 forks source link

Winamp specHist returning empty? #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Have winamp running with my custom lcdmiscellany script 
2.Works fine but eventually the histogram quits drawing (artist title time
etc keep drawing fine)
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
0.4.5.0

Please provide any additional information below.
Hey sorry to bug you again.  Have attached my final script.  I can't seem
to find any reason the histogram quits responding in my script so hoping
you have a thought.  I added some debug code and I get this output:

before if
after if
spect if
before if
after if
spect if
before if
after if
before if
after if
before if
after if
before if

As you can see the following comparison is coming back empty when it
clearly shouldn't be:

if (size($p.specHist)) {
                WriteLogLn("spect if");
                DrawSpectrum2(%specCache, $p.specHist, 2, 178, 318, 238);
            }

Restarting the executable makes it work properly again (for a while)

Thanks:)

Original issue reported on code.google.com by awag...@shaw.ca on 30 Jan 2010 at 11:43

Attachments:

GoogleCodeExporter commented 8 years ago
Could be wrong here, but suspect the issue is on the winamp side of things 
(Could be
my winamp plugin, not necessarily winamp's problem.  Could also be a bug with 
the
winamp.c script file).  Does the histogram stop updating for a second or two 
before
disappearing?

Original comment by mattme...@gmail.com on 31 Jan 2010 at 12:56

GoogleCodeExporter commented 8 years ago
No it simply quits drawing at all (because the if comes back false i assume) 
until
the .exe is restarted.  I have tried stopping the visualization and restarting 
it but
that didn't work.  It is strange though thats for sure lol.

Original comment by awag...@shaw.ca on 31 Jan 2010 at 10:05

GoogleCodeExporter commented 8 years ago
Even if I take the:

DrawSpectrum2(%specCache, $p.specHist, 2, 178, 318, 238);

out of the if statement and add it here:

DrawSpectrum2(%specCache, $p.specHist, 2, 178, 318, 238);
UseFont(%bigTitleFont);
SetDrawColor(colorMyBg);
%bigArtistScroller.SetText($p.title);
%bigArtistScroller.DisplayText(0, 160);
UseFont(%titleFont);
SetDrawColor(colorMyHighlightText);
DisplayTextRight(FormatDuration($p.position) +s " / " +s 
FormatDuration($p.duration),
312, 176);  

It still draws blank.  ie it is empty.

Original comment by awag...@shaw.ca on 31 Jan 2010 at 11:06

GoogleCodeExporter commented 8 years ago
Hmm...No idea what's happening, then.  Do you get the same behavior with the 
default
script?

Original comment by mattme...@gmail.com on 1 Feb 2010 at 2:44

GoogleCodeExporter commented 8 years ago
Yes.  The weird thing is it only seems to be on some of the songs.  ie it may 
go away
for a few songs then it comes back on its own on another song.

Original comment by awag...@shaw.ca on 1 Feb 2010 at 9:40

GoogleCodeExporter commented 8 years ago
If it sometimes fixes itself on starting a new song, then it actually sounds 
like it
might be a winamp issue to me, since I do nothing special when starting a new 
song
(Except reformat the song name scroller, which presumably has nothing to do 
with the
issue).

Could try an ancient version of winamp that probably works, like 2.98
(http://www.oldversion.com/Winamp.html).  Remember I was having some problems 
with at
least one recent version of winamp, where my plugin wasn't working at 
all...switching
versions fixed it.  I don't use winamp much myself, and don't exactly have a 
large
(Or any...) mp3 collection, so not sure I'll be able to duplicate this issue, 
when I
finally get around to trying to do so.

Original comment by mattme...@gmail.com on 2 Feb 2010 at 3:25

GoogleCodeExporter commented 8 years ago
Ok I will quit trying to fix it then lol.  Thanks for the help.

Original comment by awag...@shaw.ca on 2 Feb 2010 at 6:17