Added a new constructor for Sample(duration, chans).