Added scaling parameter (0 to 100) to putsamples() to control volume of output.