RichardOnRails
5/15/2007 4:33:00 AM
Hi Gordon,
Following is the original text I prepared in response to you. I made
mistakes in posting this thing, so you might see other versions of it
popping up. Please ignore them and excuse me for my sloppiness.
> Have a look at the win32-sound gem.
Thanks for that suggestion.
> It may already be installed, if
> you're using the one-click installer.
It was not already installed, although I think I used one-click (a
long time ago). Downloading/installing it worked fine, however.
Unfortunately, it seemed to offer the same performance as my system
call to "wv_player.exe". I suspect that win32-sound is coded in terms
of the same system call (but I'm too lazy to look.)
I further suspect that to achieve my performance goal, I'd have to do
Win32 programming in C++ to create a thread that, with parameters for
the wave-file-name, repetition-count and sleep-time in milliseconds,
calls wm_player in a loop that honors arguments supplied by the Ruby
script. That's too much work, so I think I'll live with the
limitation I'm experiencing.
Nevertheless, I'm grateful for you taking the trouble to respond to
my question (and offering sound advice).
Best wishes,
Richard
On May 13, 10:37 am, Gordon Thiesfeld <gthiesf...@gmail.com> wrote:
> Have a look at the win32-sound gem. It may already be installed, if
> you're using the one-click installer.