Ticket #2 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

Support for extended system beeps

Reported by: axel.hagedorn@… Owned by: dmik
Priority: minor Component: psi
Version: psi-0.10-os2-b1 Keywords: beep, sound
Cc: Blocking:
Blocked By:

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

Changed 2 years ago by dmik

  • status changed from new to assigned

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 :)

Changed 2 years ago by dmik

  • status changed from assigned to closed
  • resolution set to fixed

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 :)

Changed 2 years ago by dmik

  • status changed from closed to reopened
  • resolution fixed deleted

Oops, I didn't notice you meant the sequence of sounds. Will implement that, since it seems to be rather easy now.

Changed 2 years ago by dmik

  • status changed from reopened to closed
  • resolution set to fixed

Ok, as of r55, the new format is !beep[:freq[,dur]]....

Changed 2 years ago by axel.hagedorn@…

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

Note: See TracTickets for help on using tickets.