git ssb

0+

cel / foostudio



Tree: e03a630124fa47eb03d508fcfd576f8ebe4f28f1

Files: e03a630124fa47eb03d508fcfd576f8ebe4f28f1 / tune.c

387 bytesRaw
1#include <math.h>
2#include "tune.h"
3
4static void tune_init(struct tune *tune)
5{
6}
7
8static void tune_reload(struct tune *tune)
9{
10}
11
12static float tune_play(struct tune *tune, double time)
13{
14 return 0.99 * sin(time*440);
15}
16
17static void tune_deinit(struct tune *tune)
18{
19}
20
21const struct tune TUNE = {
22 .init = tune_init,
23 .reload = tune_reload,
24 .play = tune_play,
25 .deinit = tune_deinit,
26};
27

Built with git-ssb-web