1
0

samples: melody.c: use static keyword for the array

This commit is contained in:
Intel A80486DX2-66 2024-09-23 01:14:36 +03:00
parent 988ed5c475
commit 7e2347d8e7
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -1,5 +1,5 @@
// 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)];
return (long double) t * v / 3.1415926535;