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

Unified Diff: ppapi/examples/audio_input/audio_input.cc

Issue 9129007: Work on improving PpbAudioConfig:RecommendSampleFrameCount (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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
Index: ppapi/examples/audio_input/audio_input.cc
===================================================================
--- ppapi/examples/audio_input/audio_input.cc (revision 122585)
+++ ppapi/examples/audio_input/audio_input.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -41,7 +41,8 @@
const uint32_t kSampleCount = 1024;
const uint32_t kChannelCount = 1;
- sample_count_ = pp::AudioConfig::RecommendSampleFrameCount(kSampleFrequency,
+ sample_count_ = pp::AudioConfig::RecommendSampleFrameCount(this,
+ kSampleFrequency,
kSampleCount);
PP_DCHECK(sample_count_ > 0);
channel_count_ = kChannelCount;

Powered by Google App Engine
This is Rietveld 408576698