mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
Added rounding...
This commit is contained in:
parent
9433839ddd
commit
8d94accc49
1 changed files with 1 additions and 1 deletions
|
|
@ -296,7 +296,7 @@ static void swap_formats(int channel, int *src, int *dst)
|
||||||
*dst = tmp;
|
*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)
|
int snd_pcm_plugin_params(snd_pcm_t *pcm, snd_pcm_channel_params_t *params)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue