Files: fdc9644582b3e2b875598b772c5bdda6c74ef9e5 / tune.c
374 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 double tune_play(struct tune *tune, int time) |
13 | { |
14 | return sin(time); |
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