Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: webrtc/common_audio/resampler/sinc_resampler.h

Issue 2535643002: Replace some asserts with DCHECKs (Closed)
Patch Set: Replace some asserts with DCHECKs Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/common_audio/fir_filter_sse.cc ('k') | webrtc/common_audio/resampler/sinc_resampler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_audio/resampler/sinc_resampler.h
diff --git a/webrtc/common_audio/resampler/sinc_resampler.h b/webrtc/common_audio/resampler/sinc_resampler.h
index ecfd64c0a647eb38a6fe09d0f23bf056698d7357..0a81723a2751991f950c37cd9383ca5d87ffd657 100644
--- a/webrtc/common_audio/resampler/sinc_resampler.h
+++ b/webrtc/common_audio/resampler/sinc_resampler.h
@@ -38,7 +38,7 @@ class SincResampler {
// The kernel size can be adjusted for quality (higher is better) at the
// expense of performance. Must be a multiple of 32.
// TODO(dalecurtis): Test performance to see if we can jack this up to 64+.
- static const size_t kKernelSize = 32;
+ enum : size_t { kKernelSize = 32 };
kwiberg-webrtc 2016/11/28 05:17:48 This is needed because RTC_DCHECK_op takes referen
ossu 2016/11/28 14:54:25 I don't get it. Why can't you take a reference to
kwiberg-webrtc 2016/11/28 23:01:47 IIRC it was a linker error. I believe the template
ossu 2016/11/29 10:23:48 Ah, I see! So the problem is that kKernelSize does
kwiberg-webrtc 2016/11/29 10:31:15 Yes, exactly. (And note that the godbolt example a
// Default request size. Affects how often and for how much SincResampler
// calls back for input. Must be greater than kKernelSize.
« no previous file with comments | « webrtc/common_audio/fir_filter_sse.cc ('k') | webrtc/common_audio/resampler/sinc_resampler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698