aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/altonegen.c2
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