Skip to content

Commit bee500f

Browse files
authored
Merge pull request #316 from google/logversion
oboe: log version number in openStream()
2 parents 59e594e + 2b87992 commit bee500f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

include/oboe/Version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#define OBOE_VERSION_MINOR 0
3636

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

4040
#define OBOE_STRINGIFY(x) #x
4141
#define OBOE_TOSTRING(x) OBOE_STRINGIFY(x)

src/common/AudioStreamBuilder.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ AudioStream *AudioStreamBuilder::build() {
7575
}
7676

7777
Result AudioStreamBuilder::openStream(AudioStream **streamPP) {
78+
LOGD("%s() %s -------- Oboe version " OBOE_VERSION_TEXT " --------",
79+
__func__, getDirection() == Direction::Input ? "INPUT" : "OUTPUT");
80+
7881
if (streamPP == nullptr) {
7982
return Result::ErrorNull;
8083
}

0 commit comments

Comments
 (0)