aboutsummaryrefslogtreecommitdiff
path: root/samples/hello-oboe
diff options
context:
space:
mode:
authorDon Turner <donturner@google.com>2018-06-13 12:07:48 +0100
committerDon Turner <dturner@users.noreply.github.com>2018-06-14 20:53:43 +0100
commitfa6f67e5570b781f5e7e0ff8b6e1ba0a51746139 (patch)
treee52cdd7ec53e8d85f87bf9331e055a31a4dd1c50 /samples/hello-oboe
parent902e42a551d60e30c0953b5b6654a55970bf61ae (diff)
downloadoboe-fa6f67e5570b781f5e7e0ff8b6e1ba0a51746139.tar.gz
Refactor getXRunCount to return ResultWithValue
Diffstat (limited to 'samples/hello-oboe')
-rw-r--r--samples/hello-oboe/src/main/cpp/PlayAudioEngine.cpp4
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();