Fix bug where sounds that were an even multiple of the chunk size long
could have their last chunk dropped.
Use lower sample rate for visualization when possible.