Added rounding...

This commit is contained in:
Jaroslav Kysela 1999-11-24 18:17:20 +00:00
parent 9433839ddd
commit 8d94accc49

View file

@ -296,7 +296,7 @@ static void swap_formats(int channel, int *src, int *dst)
*dst = tmp;
}
#define CONVERT_RATIO(dest, ratio) dest = (int)((double)dest * ratio)
#define CONVERT_RATIO(dest, ratio) dest = ((int)(((double)dest * ratio)+0.5))
int snd_pcm_plugin_params(snd_pcm_t *pcm, snd_pcm_channel_params_t *params)
{