fixed signed-unsigned bug in wav loading code