From fa6f67e5570b781f5e7e0ff8b6e1ba0a51746139 Mon Sep 17 00:00:00 2001 From: Don Turner Date: Wed, 13 Jun 2018 12:07:48 +0100 Subject: Refactor getXRunCount to return ResultWithValue --- samples/hello-oboe/src/main/cpp/PlayAudioEngine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'samples/hello-oboe') 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(); -- cgit v1.2.3