demonstration of playing a procedurally generated sine wave with SDL