![]() |
#1 |
Senior Member
Join Date: Nov 2004
Location: Valencia, CA
Posts: 304
|
EQ Presets button
I'm trying to create a button that will cycle through a set of hard-coded EQ presets. The code below will load one preset (and display the text for that preset, but won't cycle through them.
PHP Code:
|
![]() |
![]() |
![]() |
#2 |
Winamp Addict
(Major Dude) |
try adding
EQPresetNum = 3; to your onscriptloaded |
![]() |
![]() |
![]() |
#3 |
Senior Member
Join Date: Nov 2004
Location: Valencia, CA
Posts: 304
|
Nope
![]() But, that brings up another question - how do I track what the last setting was before the skin was unloaded? Is that what the GetPrivateInt and SetPrivateInt are for? |
![]() |
![]() |
![]() |
#4 |
Winamp Addict
(Major Dude) |
use both, use SetPrivateInt to save the value and GetPrivateInt when the skin gets loaded
|
![]() |
![]() |
![]() |
#5 |
Senior Member
Join Date: Nov 2004
Location: Valencia, CA
Posts: 304
|
Cool, got it all working. Thanks!
PHP Code:
|
![]() |
![]() |
![]() |
#6 |
Major Dude
Join Date: Oct 2003
Location: Netherlands
Posts: 1,416
|
Shouldn't setPrivateInt be in de onScriptUnloading section?
|
![]() |
![]() |
![]() |
#7 |
Winamp Addict
(Major Dude) |
this will work to, doesn't really matter
|
![]() |
![]() |
![]() |
#8 |
Senior Member
Join Date: Nov 2004
Location: Valencia, CA
Posts: 304
|
This way is actually a little better, in that it writes to studio.xnf as soon as the EQ profile is changed. That way if Winamp shuts down unexpectedly, the values are already saved.
|
![]() |
![]() |
![]() |
#9 |
Major Dude
Join Date: Oct 2003
Location: Netherlands
Posts: 1,416
|
Oh yes that's true, didn't think of that.
![]() |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|