Fix index types and values for reading a single wav sample