Proposed sample rate implementation.
Merge master
Merge branch 'master' into sample-rate
Merge pull request #6 from AttackPattern/sample-rate

Merge in the Sample Rate branch.