Commit 138fc6d5 authored by rbencina's avatar rbencina

fixed compiler warning: conversion from 'double' to 'float', possible loss of data

git-svn-id: https://subversion.assembla.com/svn/portaudio/portaudio/trunk@1946 0f58301d-fd10-0410-b4af-bbb618454e57
parent 1e1255f3
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment