From: rbencina Date: Wed, 21 Jan 2015 06:30:53 +0000 (+0000) Subject: fixed compiler warning: conversion from 'double' to 'float', possible loss of data X-Git-Tag: pa_stable_v190600_20161030~43 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=98d12b21faa9b1bba3d5d6e61188a05461ef40e0;p=portaudio fixed compiler warning: conversion from 'double' to 'float', possible loss of data --- diff --git a/examples/paex_ocean_shore.c b/examples/paex_ocean_shore.c index 42e2b55..7eb7f20 100644 --- a/examples/paex_ocean_shore.c +++ b/examples/paex_ocean_shore.c @@ -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;