diff options
author | Chris Robinson <[email protected]> | 2015-10-14 05:00:11 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-10-14 05:00:11 -0700 |
commit | f654767395cbc28568095ea76622bd932f9beca9 (patch) | |
tree | 00ea315107e289b977b3ad1ac8febb4291ec714c | |
parent | 98eda6b35be5042534dd2b0cd0608a87cb524f86 (diff) |
Silence implicit double-to-float cast MSVC warning
-rw-r--r-- | examples/altonegen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/altonegen.c b/examples/altonegen.c index 4035b5e1..1e93c904 100644 --- a/examples/altonegen.c +++ b/examples/altonegen.c @@ -71,7 +71,7 @@ static void ApplySin(ALfloat *data, ALdouble g, ALuint srate, ALuint freq) ALdouble smps_per_cycle = (ALdouble)srate / freq; ALuint i; for(i = 0;i < srate;i++) - data[i] += sin(i/smps_per_cycle * 2.0*M_PI) * g; + data[i] += (ALfloat)(sin(i/smps_per_cycle * 2.0*M_PI) * g); } /* Generates waveforms using additive synthesis. Each waveform is constructed |