From f654767395cbc28568095ea76622bd932f9beca9 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 14 Oct 2015 05:00:11 -0700 Subject: Silence implicit double-to-float cast MSVC warning --- examples/altonegen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') 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 -- cgit v1.2.3