Skip to content

Commit 610306c

Browse files
authored
Short circuit processing graph logging if disabled (#876)
1 parent 108ed7c commit 610306c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/CSFBAudioEngine/Player/AudioPlayer.mm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,6 +1029,10 @@ Flags clearFlags(Flags flags, std::memory_order order = std::memory_order_acq_re
10291029
// MARK: - Debugging
10301030

10311031
void sfb::AudioPlayer::logProcessingGraphDescription(os_log_t log, os_log_type_t type) const noexcept {
1032+
if (!os_log_type_enabled(log, type)) {
1033+
return;
1034+
}
1035+
10321036
NSMutableString *string = [NSMutableString
10331037
stringWithFormat:@"<AudioPlayer: %p> audio processing graph:\n", static_cast<const void *>(this)];
10341038

0 commit comments

Comments
 (0)