mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
Allow negative coefficients in route plugin
Allow negative coefficients in route plugin (when handled as float).
This commit is contained in:
parent
4c06a75a2f
commit
8b79a92537
1 changed files with 1 additions and 1 deletions
|
|
@ -794,7 +794,6 @@ static int route_load_ttable(snd_pcm_route_params_t *params, snd_pcm_stream_t st
|
|||
for (src_channel = 0; src_channel < sused; ++src_channel) {
|
||||
snd_pcm_route_ttable_entry_t v;
|
||||
v = ttable[src_channel * smul + dst_channel * dmul];
|
||||
assert(v >= 0 && v <= SND_PCM_PLUGIN_ROUTE_FULL);
|
||||
if (v != 0) {
|
||||
srcs[nsrcs].channel = src_channel;
|
||||
#if SND_PCM_PLUGIN_ROUTE_FLOAT
|
||||
|
|
@ -802,6 +801,7 @@ static int route_load_ttable(snd_pcm_route_params_t *params, snd_pcm_stream_t st
|
|||
srcs[nsrcs].as_int = (v == SND_PCM_PLUGIN_ROUTE_FULL ? SND_PCM_PLUGIN_ROUTE_RESOLUTION : 0);
|
||||
srcs[nsrcs].as_float = v;
|
||||
#else
|
||||
assert(v >= 0 && v <= SND_PCM_PLUGIN_ROUTE_FULL);
|
||||
srcs[nsrcs].as_int = v;
|
||||
#endif
|
||||
if (v != SND_PCM_PLUGIN_ROUTE_FULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue