forked from len0rd/rockbox
Automatically set clipping limits based on sample precision.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7719 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c759b67725
commit
c9249add41
1 changed files with 2 additions and 0 deletions
|
|
@ -641,6 +641,8 @@ bool dsp_configure(int setting, void *value)
|
||||||
{
|
{
|
||||||
dsp->frac_bits = (long) value;
|
dsp->frac_bits = (long) value;
|
||||||
dsp->sample_bytes = sizeof(long);
|
dsp->sample_bytes = sizeof(long);
|
||||||
|
dsp->clip_max = (1 << (long)value) - 1;
|
||||||
|
dsp->clip_min = -(1 << (long)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue