diff options
-rw-r--r-- | native_client_sdk/src/examples/sine_synth/sine_synth.cc | 3 |
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, |