Files: 4be6db6a6163e3a0ccd85e7e193f54406c80a29a / tune.c
387 bytesRaw
1 | |
2 | |
3 | |
4 | static void tune_init(struct tune *tune) |
5 | { |
6 | } |
7 | |
8 | static void tune_reload(struct tune *tune) |
9 | { |
10 | } |
11 | |
12 | static float tune_play(struct tune *tune, double time) |
13 | { |
14 | return 0.99 * sin(time*440); |
15 | } |
16 | |
17 | static void tune_deinit(struct tune *tune) |
18 | { |
19 | } |
20 | |
21 | const 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