The 'v' is unsigned 16-bit little-endian. It works fine for packing signed 16-bit values to little-endian, but not for unpacking them.
To recover the signed value use:
print unpack 's', pack 'v', -32767;; -32767
In reply to Re: Unpacking 16bit sound
by BrowserUk
in thread Win32::Sound 16 bit example
by true
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |