Fix 24-bit wav playback/seeking

Seeking in a 24-bit wav file using ao for output causes static to sometimes be played due to partial frames.  The patch fixes the issue by ensuring that only whole and properly aligned frames are copied.