Commit b5ebb2a607ac9ea92f525350e5b18580d0e71888
Move tau into tune.c
cel committed on 10/24/2016, 11:40:33 PMParent: 5786b0b025e423f956afb157f1478abd951ddb2a
Files changed
ccdl.c | changed |
studio.c | changed |
tune.c | changed |
ccdl.c | ||
---|---|---|
@@ -38,9 +38,9 @@ | ||
38 | 38 … | if (child < 0) return -1; |
39 | 39 … | if (child == 0) { |
40 | 40 … | char *const argv[] = { |
41 | 41 … | "cc", (char *)src, "-o", (char *)lib, |
42 | - "-fPIC", "-shared", "-lm", "-std=c99", | |
42 … | + "-fPIC", "-shared", "-lm", | |
43 | 43 … | NULL}; |
44 | 44 … | return execvp(argv[0], argv); |
45 | 45 … | } else { |
46 | 46 … | int wstatus; |
studio.c | ||
---|---|---|
@@ -45,9 +45,9 @@ | ||
45 | 45 … | snd_pcm_uframes_t offset, |
46 | 46 … | int count, double *_phase) |
47 | 47 … | { |
48 | 48 … | double phase = *_phase; |
49 | - double step = 2. * M_PI/(double)rate; | |
49 … | + double step = 1/(double)rate; | |
50 | 50 … | unsigned char *samples[channels]; |
51 | 51 … | int steps[channels]; |
52 | 52 … | unsigned int chn; |
53 | 53 … | int format_bits = snd_pcm_format_width(format); |
Built with git-ssb-web