]> Repos - portaudio/commitdiff
fixed compiler warning: conversion from 'double' to 'float', possible loss of data
authorrbencina <rbencina@0f58301d-fd10-0410-b4af-bbb618454e57>
Wed, 21 Jan 2015 06:30:53 +0000 (06:30 +0000)
committerrbencina <rbencina@0f58301d-fd10-0410-b4af-bbb618454e57>
Wed, 21 Jan 2015 06:30:53 +0000 (06:30 +0000)
examples/paex_ocean_shore.c

index 42e2b5524193e85858c4c56bddf9f610bded0be4..7eb7f207bb65be0575adfdcdd6e80458b8fd2d7a 100644 (file)
@@ -381,7 +381,7 @@ OceanWave* InitializeWave(double SR, float attackInSeconds, float maxLevel, floa
         wave->wave_attack_incr = wave->wave_envelope_max_level / (attackInSeconds * (float)SR);
         wave->wave_decay_incr = - wave->wave_envelope_max_level / (attackInSeconds * 4 * (float)SR);
 
-        wave->wave_pan_left = sqrtf(1.0 - positionLeftRight);
+        wave->wave_pan_left = sqrtf(1.0f - positionLeftRight);
         wave->wave_pan_right = sqrtf(positionLeftRight);
     }
     return wave;