Updated some types, can't check unsigned chars for being negative. Some mis-derefrencing as well. Can get to play loop but not play anything. Likely some problem reading the wav as I still get a really low value.