| 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);
|
|
|