samples: melody.c: use static
keyword for the array
This commit is contained in:
parent
988ed5c475
commit
7e2347d8e7
@ -1,5 +1,5 @@
|
|||||||
// RENDER PARAMETERS: sample_rate = 44100, no_return
|
// RENDER PARAMETERS: sample_rate = 44100, no_return
|
||||||
|
|
||||||
const long double array[] = {1, 1.25, 1.5, 2};
|
static const long double array[] = {1, 1.25, 1.5, 2};
|
||||||
long double v = array[3 & (t >> 13)];
|
long double v = array[3 & (t >> 13)];
|
||||||
return (long double) t * v / 3.1415926535;
|
return (long double) t * v / 3.1415926535;
|
||||||
|
Loading…
Reference in New Issue
Block a user