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

Unified Diff: media/base/sinc_resampler.cc

Issue 11189047: Add opus audio codec support in remoting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months 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 | « media/base/sinc_resampler.h ('k') | remoting/codec/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/sinc_resampler.cc
diff --git a/media/base/sinc_resampler.cc b/media/base/sinc_resampler.cc
index 9352fe3dd2f5895ed1aa9032f81d420c95fba5b2..d836fc7cbcc862c3dc9c022fab8355df8375a588 100644
--- a/media/base/sinc_resampler.cc
+++ b/media/base/sinc_resampler.cc
@@ -52,6 +52,8 @@
namespace media {
+namespace {
+
enum {
// The kernel size can be adjusted for quality (higher is better) at the
// expense of performance. Must be a multiple of 32.
@@ -73,6 +75,10 @@ enum {
kBufferSize = kBlockSize + kKernelSize
};
+} // namespace
+
+const int SincResampler::kMaximumLookAheadSize = kBufferSize;
+
SincResampler::SincResampler(double io_sample_rate_ratio, const ReadCB& read_cb)
: io_sample_rate_ratio_(io_sample_rate_ratio),
virtual_source_idx_(0),
« no previous file with comments | « media/base/sinc_resampler.h ('k') | remoting/codec/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698