Fix problem reading 16-bit samples