diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-10-14 12:38:48 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-10-14 12:38:48 +0100 |
| commit | 2610abb85fc82056c51c540d7a3d8f691dfe3403 (patch) | |
| tree | 61aa70f1c541cd6bc8655f673149511aaad4b52c /test | |
| parent | ff0f82c7c0616acddbd6510d75284856ffaeac71 (diff) | |
Optimise audio filters; tweak order of the LPFs in the upmixers.
Diffstat (limited to 'test')
| -rw-r--r-- | test/audio_filter_test.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/audio_filter_test.cc b/test/audio_filter_test.cc index c3d799b3b..ebb7df5a0 100644 --- a/test/audio_filter_test.cc +++ b/test/audio_filter_test.cc @@ -55,7 +55,8 @@ audio_filter_impulse_test_one (AudioFilter& f, int block_size, int num_blocks) BOOST_AUTO_TEST_CASE (audio_filter_impulse_kernel_test) { AudioFilter f (0.02); - f._ir.resize (f._M + 1); + delete[] f._ir; + f._ir = new float[f._M + 1]; f._ir[0] = 1; for (int i = 1; i <= f._M; ++i) { |
