Maybe it's a bug in Win32::Sound. Try looking at the module's source code to see why it seems to retain state from a previous call. If it is a bug, maybe you'll be able to submit a patch and report it on CPAN.
A Super Search finds a similar issue: Win32::Sound buffer problems
In reply to Re^3: win32 sound problem
by toolic
in thread win32 sound problem
by spencoid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |