#include #include "tune.h" static float tune_play(struct tune *tune, double time) { return 0.99 * sin(2. * M_PI * time * 440.); } const struct tune TUNE = { .play = tune_play, };