Fix 24-bit wav playback/seeking

Ensure that only whole frames are copied.
Merge pull request #219 from mark4o/24-bit

Fix 24-bit wav playback/seeking