summaryrefslogtreecommitdiffstats
path: root/native_client_sdk/src
diff options
context:
space:
mode:
authornfullagar@google.com <nfullagar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-18 02:00:13 +0000
committernfullagar@google.com <nfullagar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-18 02:00:13 +0000
commitd3b2221a9c11d067ded880807b1a3aaccf004109 (patch)
tree5b9d7a7a3c62d56cd563a9a5fe52333fa8efa1fc /native_client_sdk/src
parent814d2f8d6e01728fb5b348a9d3d3e112b90bfb46 (diff)
downloadchromium_src-d3b2221a9c11d067ded880807b1a3aaccf004109.zip
chromium_src-d3b2221a9c11d067ded880807b1a3aaccf004109.tar.gz
chromium_src-d3b2221a9c11d067ded880807b1a3aaccf004109.tar.bz2
Fix sine_synth example
BUG=NONE TEST=this is the test / example. Review URL: https://chromiumcodereview.appspot.com/9421019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122667 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'native_client_sdk/src')
-rw-r--r--native_client_sdk/src/examples/sine_synth/sine_synth.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/native_client_sdk/src/examples/sine_synth/sine_synth.cc b/native_client_sdk/src/examples/sine_synth/sine_synth.cc
index d2b3f4d..99bdf7f 100644
--- a/native_client_sdk/src/examples/sine_synth/sine_synth.cc
+++ b/native_client_sdk/src/examples/sine_synth/sine_synth.cc
@@ -114,7 +114,8 @@ bool SineSynthInstance::Init(uint32_t argc,
const char* argv[]) {
// Ask the device for an appropriate sample count size.
sample_frame_count_ =
- pp::AudioConfig::RecommendSampleFrameCount(PP_AUDIOSAMPLERATE_44100,
+ pp::AudioConfig::RecommendSampleFrameCount(this,
+ PP_AUDIOSAMPLERATE_44100,
kSampleFrameCount);
audio_ = pp::Audio(this,
pp::AudioConfig(this,