in reply to Re^3: Playing wav files
in thread Playing wav files
This works for me on Windows 10 Perl v5.16.1 Win32::Sound 0.51
poj#!perl use strict; use Win32::Sound; printf "%s %s\n",$^V,$Win32::Sound::VERSION; Win32::Sound::Volume('100%'); for my $n ('01'..'10'){ my $wav = 'C:/Windows/media/Alarm'.$n.'.wav'; print "Playing $wav\n"; Win32::Sound::Play($wav); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Playing wav files
by merrymonk (Hermit) on Feb 10, 2019 at 16:56 UTC | |
by merrymonk (Hermit) on Feb 10, 2019 at 20:49 UTC |