From 6c602361ff21fc324d96689b095a17890de63539 Mon Sep 17 00:00:00 2001 From: Phil Burk Date: Fri, 3 Nov 2017 15:56:53 -0700 Subject: [PATCH] oboe: fix dlsym for getFramesWritten/Read Fix issue #6 - they were reversed --- src/aaudio/AAudioLoader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aaudio/AAudioLoader.cpp b/src/aaudio/AAudioLoader.cpp index 14d76ac0b..08704f54c 100644 --- a/src/aaudio/AAudioLoader.cpp +++ b/src/aaudio/AAudioLoader.cpp @@ -118,8 +118,8 @@ int AAudioLoader::open() { stream_getDirection = load_I_PS("AAudioStream_getDirection"); stream_getBufferCapacity = load_I_PS("AAudioStream_getBufferCapacityInFrames"); stream_getFramesPerBurst = load_I_PS("AAudioStream_getFramesPerBurst"); - stream_getFramesRead = load_L_PS("AAudioStream_getFramesWritten"); - stream_getFramesWritten = load_L_PS("AAudioStream_getFramesRead"); + stream_getFramesRead = load_L_PS("AAudioStream_getFramesRead"); + stream_getFramesWritten = load_L_PS("AAudioStream_getFramesWritten"); stream_getPerformanceMode = load_I_PS("AAudioStream_getPerformanceMode"); stream_getSampleRate = load_I_PS("AAudioStream_getSampleRate"); stream_getSharingMode = load_I_PS("AAudioStream_getSharingMode");