get_sample_slice uses integer max_val
Merge pull request #79 from awni/master

get_sample_slice uses integer max_val