Fixes sinewave example on 0.10 (Stream API changes)
Merge pull request #12 from jfmatt/master

Fixes sinewave example on 0.10 (Stream API changes)