mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
Small fix...
This commit is contained in:
parent
adb16d5236
commit
9c524f9e7c
1 changed files with 2 additions and 0 deletions
|
|
@ -202,6 +202,8 @@ int snd_pcm_plugin_build_rate(int src_format, int src_rate, int src_voices,
|
|||
if (plugin == NULL)
|
||||
return -ENOMEM;
|
||||
data = (struct rate_private_data *)snd_pcm_plugin_extra_data(plugin);
|
||||
data->src_voices = src_voices;
|
||||
data->dst_voices = dst_voices;
|
||||
data->src_rate = src_rate;
|
||||
data->dst_rate = dst_rate;
|
||||
data->pitch = ((src_rate << SHIFT) + (dst_rate >> 1)) / dst_rate;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue