Fixes sinewave example on 0.10 (Stream API changes)