Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Recent Posts
7
MP3 / Re: An MP3 encoder without a cutoff point
Last post by danadam -
For me lame seems to show a different behavior for 48000 and 44100 than for other sampling frequencies. I generated a stereo sweep from 0.9 bandwidth to max at sampling frequencies: 48000, 44100, 32000, 22050, 16000 and 11025. Then I encoded them with "lame -b 32 --lowpass -1". Only 48000 and 44100 preserved the signal at the top:
X
9
3rd Party Plugins - (fb2k) / Re: JScript Panel script discussion/help
Last post by VxMiMxV -
Okay, this has been driving me crazy for a few days now:
Code: [Select]
// ==PREPROCESSOR==
// @name "Test"
// ==/PREPROCESSOR==

function RGB(r, g, b) {return (0xff000000 | (r << 16) | (g << 8) | (b));}

Button = {State:0};
ButtonColors = {0:RGB(0, 0, 0), 1: RGB(155, 155, 155), 2: RGB(255, 255, 255)};

function on_paint(gr) {gr.FillRectangle(0, 0, window.Width, window.Height, ButtonColors[Button.State]);}

function                 on_mouse_leave() {Button.State = 0; window.Repaint();}
function              on_mouse_move(x, y) {Button.State = 1; window.Repaint();}
function         on_mouse_lbtn_down(x, y) {Button.State = 2; window.Repaint();}
function on_mouse_lbtn_dblclk(x, y, mask) {on_mouse_lbtn_down(x, y)}
function         on_mouse_lbtn_down(x, y) {Button.State = 2; window.Repaint();}
function           on_mouse_lbtn_up(x, y) {Button.State = 1; window.Repaint();}

function on_focus(IsFocused) {if (!IsFocused) {Button.State = 0;}; window.Repaint();};
in my mind, function on_mouse_lbtn_dblclk(x, y, mask) {on_mouse_lbtn_down(x, y)} should make double clicks behave like normal clicks...
To test, single click and drag your mouse outside the foobar window, then try doing the same but double clicking ~

Is ES5 at fault? Is foobar at fault? I'd really appreciate if someone can explain what is happening!