I want to make a clicking sound -- something similar to a clock tick or
metronome tick -- within a perl program. The code will accept a "number of
beats per minute" value, then play the .wav on each "beat".

use Time::HiRes qw(usleep);
use Win32::Sound;
$microseconds = 500_000;  # 120 beats/minute
while(1)
{
  usleep($microseconds);
  Play("beat.wav");
}

I've been unable to locate Win32::Sound using ppm search.

ppm> rep
Repositories:
[1] ActiveState Package Repository
[2] AS-BETA
[3] AS-BETA2
[4] LOCAL
[5] CPAN
[6] ActiveState PPM2 Repository
[7] UWINN

Does someone know where I can find Win32::Sound?

TIA,

Phil
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to