diff options
author | Don Turner <donturner@google.com> | 2018-06-13 12:07:48 +0100 |
---|---|---|
committer | Don Turner <dturner@users.noreply.github.com> | 2018-06-14 20:53:43 +0100 |
commit | fa6f67e5570b781f5e7e0ff8b6e1ba0a51746139 (patch) | |
tree | e52cdd7ec53e8d85f87bf9331e055a31a4dd1c50 /samples/hello-oboe | |
parent | 902e42a551d60e30c0953b5b6654a55970bf61ae (diff) | |
download | oboe-fa6f67e5570b781f5e7e0ff8b6e1ba0a51746139.tar.gz |
Refactor getXRunCount to return ResultWithValue
Diffstat (limited to 'samples/hello-oboe')
-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(); |