|
From: | anonymous |
Subject: | [Octave-bug-tracker] [bug #59149] [octave forge] (signal) Resampling from 22050 to 48000 Hz introduces strange and unexpected artifacts |
Date: | Thu, 8 Oct 2020 13:52:48 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0 |
Follow-up Comment #41, bug #59149 (project octave): Replacing const octave_idx_type n = floor (m/r); with const octave_idx_type n = floor ( double(m) / r + 1e-3 ); fixes the rounding problem, and both versions give the same result irrespective of compiler flags. But is this sound reasoning? _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?59149> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |