#2 closed enhancement (fixed)
Support for extended system beeps
Reported by: | Owned by: | dmik | |
---|---|---|---|
Priority: | minor | Component: | psi |
Version: | psi-0.10-os2-b1 | Keywords: | beep, sound |
Cc: |
Description
As far as I have seen and tried out - if you want to use system beeps instead of real sounds you can only use "!beep" for one single beep for an event. It would be very nice to be able to specify more than just one beep and differences in frequency and duration between different beeps - like it was possible in pwICQ, where you could specify a beep event like %frequency1,duration1,frequency2,duration2,.... (I always used %800,100,800,100,800,100,500,150 for example.) Any chance this could be added to the !beep parameter?
Change History (5)
comment:1 by , 18 years ago
Status: | new → assigned |
---|
comment:2 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Done in r54. The new format is !beep[:freq:duration]
, so it's backwards-comatible. So far, works on OS/2 and Win32 only. The frequency range is 37-32767 Hz, the duration is 1-3000 ms.
It took me a bit longer than I expected: I had to dedicate a thread for that task because DosBeep blocks the execution until complete (so that specifying too long beeps would freese the UI). I hope it's worth it :)
comment:3 by , 18 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Oops, I didn't notice you meant the sequence of sounds. Will implement that, since it seems to be rather easy now.
comment:4 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Ok, as of r55, the new format is !beep[:freq[,dur]]...
.
comment:5 by , 18 years ago
Thanks a whole lot! Was already wondering how to interpret the format when I wanted to have more than just one beep. :-) I'm eagerly awaiting next build!
Axel
Technically, it's not that difficult. I'll see if I can quickly add this functionality.
P.S. I did not know that !beep can be understood as a sound file name :)