FreePIE icon indicating copy to clipboard operation
FreePIE copied to clipboard

Create BeepPlugin

Open Frenchy62620 opened this issue 9 years ago • 5 comments

The possibility to mark an event with a beep

Frenchy62620 avatar Jan 19 '16 12:01 Frenchy62620

Hi, I will take a close look at this after work, but my first impression is that it breaka our conventions, we do not let plugins spawn threads on their own, we want to Marshall them from the script engine, the start method returns an Action, this action runs in its own thread.

AndersMalmgren avatar Jan 19 '16 12:01 AndersMalmgren

i agree, i have just written the idea, after i let you to implement with your convention the code.. i can modify easely some parts of the code, but some parts are complex....

Frenchy62620 avatar Jan 19 '16 13:01 Frenchy62620

Hmm, youre code spawns one thread for each tone played, that could hog the computer totally. My Action tip above spawns one thread. But then yo cant play two tones at the same time

AndersMalmgren avatar Jan 19 '16 15:01 AndersMalmgren

i dont understant why i spawn one thread each time? its static class and a static class cant be instancied?? i spawn a thread and the thread is sleeping until another each tone awakes it. could you explain my error please?

after just one tone , yes its the idea..its just to validate an event (button pressed or other).

Frenchy62620 avatar Jan 19 '16 18:01 Frenchy62620

I just had a quick look at work, will look more closely

AndersMalmgren avatar Jan 19 '16 18:01 AndersMalmgren