Skip to content

Commit

Permalink
Merge pull request #316 from google/logversion
Browse files Browse the repository at this point in the history
oboe: log version number in openStream()
  • Loading branch information
philburk authored Dec 18, 2018
2 parents 59e594e + 2b87992 commit bee500f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/oboe/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#define OBOE_VERSION_MINOR 0

// Type: 16-bit unsigned int. Min value: 0 Max value: 65535. See below for description.
#define OBOE_VERSION_PATCH 0
#define OBOE_VERSION_PATCH 1

#define OBOE_STRINGIFY(x) #x
#define OBOE_TOSTRING(x) OBOE_STRINGIFY(x)
Expand Down
3 changes: 3 additions & 0 deletions src/common/AudioStreamBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ AudioStream *AudioStreamBuilder::build() {
}

Result AudioStreamBuilder::openStream(AudioStream **streamPP) {
LOGD("%s() %s -------- Oboe version " OBOE_VERSION_TEXT " --------",
__func__, getDirection() == Direction::Input ? "INPUT" : "OUTPUT");

if (streamPP == nullptr) {
return Result::ErrorNull;
}
Expand Down

0 comments on commit bee500f

Please sign in to comment.