calculated wrong sample_size
use bytes instead of char *
fixed audio distortion with planer audio