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

Unified Diff: ppapi/tests/test_audio.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/tests/test_audio.cc
===================================================================
--- ppapi/tests/test_audio.cc (revision 122585)
+++ ppapi/tests/test_audio.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.
@@ -64,7 +64,7 @@
// Make a config, create the audio resource, and release the config.
uint32_t request_frame_count = kRequestFrameCounts[j];
uint32_t frame_count = audio_config_interface_->RecommendSampleFrameCount(
- sample_rate, request_frame_count);
+ instance_->pp_instance(), sample_rate, request_frame_count);
PP_Resource ac = audio_config_interface_->CreateStereo16Bit(
instance_->pp_instance(), sample_rate, frame_count);
ASSERT_TRUE(ac);
@@ -106,7 +106,7 @@
const uint32_t kRequestFrameCount = 2048;
uint32_t frame_count = audio_config_interface_->RecommendSampleFrameCount(
- kSampleRate, kRequestFrameCount);
+ instance_->pp_instance(), kSampleRate, kRequestFrameCount);
PP_Resource ac = audio_config_interface_->CreateStereo16Bit(
instance_->pp_instance(), kSampleRate, frame_count);
ASSERT_TRUE(ac);
@@ -133,7 +133,7 @@
// We want a valid config for some of our tests of |Create()|.
uint32_t frame_count = audio_config_interface_->RecommendSampleFrameCount(
- kSampleRate, kRequestFrameCount);
+ instance_->pp_instance(), kSampleRate, kRequestFrameCount);
PP_Resource ac = audio_config_interface_->CreateStereo16Bit(
instance_->pp_instance(), kSampleRate, frame_count);
ASSERT_TRUE(ac);

Powered by Google App Engine
This is Rietveld 408576698