diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2021-01-12 15:46:54 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2021-01-12 15:46:54 +0000 |
commit | 0cc1a0f75ef63189a2883238dd15c5eb0140fa11 (patch) | |
tree | 35cbd2ae8611b4f1882ebffcbf01a64477b9f894 /usr.bin/sndiod/dsp.c | |
parent | db4c912e2c3b4339405a13cabc595a39db12c4aa (diff) |
const-ify lookup tables; ok ratchov@
Diffstat (limited to 'usr.bin/sndiod/dsp.c')
-rw-r--r-- | usr.bin/sndiod/dsp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/sndiod/dsp.c b/usr.bin/sndiod/dsp.c index 5b8ade88be4..9b0a477a596 100644 --- a/usr.bin/sndiod/dsp.c +++ b/usr.bin/sndiod/dsp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dsp.c,v 1.16 2021/01/11 14:26:00 ratchov Exp $ */ +/* $OpenBSD: dsp.c,v 1.17 2021/01/12 15:46:53 naddy Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org> * @@ -18,7 +18,7 @@ #include "dsp.h" #include "utils.h" -int aparams_ctltovol[128] = { +const int aparams_ctltovol[128] = { 0, 256, 266, 276, 287, 299, 310, 323, 335, 348, 362, 376, 391, 406, 422, 439, 456, @@ -38,7 +38,7 @@ int aparams_ctltovol[128] = { 26008, 27029, 28090, 29193, 30339, 31530, 32768 }; -int resamp_filt[RESAMP_LENGTH / RESAMP_STEP + 1] = { +const int resamp_filt[RESAMP_LENGTH / RESAMP_STEP + 1] = { 0, 0, 3, 9, 22, 42, 73, 116, 174, 248, 341, 454, 589, 749, 934, 1148, 1392, 1666, 1974, 2316, 2693, 3107, 3560, 4051, |