diff options
| author | Thom Johansen <thomj@rockbox.org> | 2005-11-02 00:30:58 +0000 |
|---|---|---|
| committer | Thom Johansen <thomj@rockbox.org> | 2005-11-02 00:30:58 +0000 |
| commit | c9249add41b7f157a6c7a873ccb4005b34c07b41 (patch) | |
| tree | 94b34be7c4a0ada511c0694a9f43bfc6622faddd | |
| parent | c759b67725ced7bd95ff8c7aef7238812f89ee77 (diff) | |
| download | rockbox-c9249add41b7f157a6c7a873ccb4005b34c07b41.zip rockbox-c9249add41b7f157a6c7a873ccb4005b34c07b41.tar.gz rockbox-c9249add41b7f157a6c7a873ccb4005b34c07b41.tar.bz2 rockbox-c9249add41b7f157a6c7a873ccb4005b34c07b41.tar.xz | |
Automatically set clipping limits based on sample precision.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7719 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/dsp.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -641,6 +641,8 @@ bool dsp_configure(int setting, void *value) { dsp->frac_bits = (long) value; dsp->sample_bytes = sizeof(long); + dsp->clip_max = (1 << (long)value) - 1; + dsp->clip_min = -(1 << (long)value); } break; |