aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames <55728441+JP-Lisn@users.noreply.github.com>2023-10-20 10:52:51 -0600
committerGitHub <noreply@github.com>2023-10-20 09:52:51 -0700
commite76d2313f33357344068111ed1c6caa3f9f3234a (patch)
tree629c7671193d955594568832da8699f182902caa
parent987538b6ec4cb9e699b117a890e686de7a9302fa (diff)
downloadoboe-e76d2313f33357344068111ed1c6caa3f9f3234a.tar.gz
Log deprecated fix (#1930)
-rw-r--r--src/common/AudioStreamBuilder.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/AudioStreamBuilder.cpp b/src/common/AudioStreamBuilder.cpp
index 5dbe38cc..7e5e9468 100644
--- a/src/common/AudioStreamBuilder.cpp
+++ b/src/common/AudioStreamBuilder.cpp
@@ -89,6 +89,7 @@ bool AudioStreamBuilder::isCompatible(AudioStreamBase &other) {
}
Result AudioStreamBuilder::openStream(AudioStream **streamPP) {
+ LOGW("Passing AudioStream pointer deprecated, Use openStream(std::shared_ptr<oboe::AudioStream> &stream) instead.");
auto result = isValidConfig();
if (result != Result::OK) {
LOGW("%s() invalid config %d", __func__, result);
@@ -202,6 +203,7 @@ Result AudioStreamBuilder::openStream(AudioStream **streamPP) {
}
Result AudioStreamBuilder::openManagedStream(oboe::ManagedStream &stream) {
+ LOGW("`openManagedStream` is deprecated. Use openStream(std::shared_ptr<oboe::AudioStream> &stream) instead.");
stream.reset();
AudioStream *streamptr;
auto result = openStream(&streamptr);