diff options
Diffstat (limited to 'samples')
-rw-r--r-- | samples/hello-oboe/src/main/cpp/PlayAudioEngine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/hello-oboe/src/main/cpp/PlayAudioEngine.cpp b/samples/hello-oboe/src/main/cpp/PlayAudioEngine.cpp index f2b64cc4..3dd58c1d 100644 --- a/samples/hello-oboe/src/main/cpp/PlayAudioEngine.cpp +++ b/samples/hello-oboe/src/main/cpp/PlayAudioEngine.cpp @@ -173,10 +173,10 @@ PlayAudioEngine::onAudioReady(oboe::AudioStream *audioStream, void *audioData, i * * See https://developer.android.com/studio/profile/systrace-commandline.html */ - int32_t underrunCount = audioStream->getXRunCount(); + auto underrunCountResult = audioStream->getXRunCount(); Trace::beginSection("numFrames %d, Underruns %d, buffer size %d", - numFrames, underrunCount, bufferSize); + numFrames, underrunCountResult.value(), bufferSize); int32_t channelCount = audioStream->getChannelCount(); |