From c168ce3a7eac8eefe848fd4774086582c81a7acf Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Thu, 11 Jul 2024 17:39:11 -0500 Subject: [PATCH] Deprecate `IsActuallyPlayingSth` and add `IsActuallyPlaying` to `AudioSource` --- Source/Engine/Audio/AudioSource.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Source/Engine/Audio/AudioSource.h b/Source/Engine/Audio/AudioSource.h index 7e3c17d80..450edf44a 100644 --- a/Source/Engine/Audio/AudioSource.h +++ b/Source/Engine/Audio/AudioSource.h @@ -277,8 +277,17 @@ public: public: /// /// Determines whether this audio source started playing audio via audio backend. After audio play it may wait for audio clip data to be loaded or streamed. + /// [Deprecated in v1.9] /// - API_PROPERTY() FORCE_INLINE bool IsActuallyPlayingSth() const + API_PROPERTY() DEPRECATED FORCE_INLINE bool IsActuallyPlayingSth() const + { + return _isActuallyPlayingSth; + } + + /// + /// Determines whether this audio source started playing audio via audio backend. After audio play it may wait for audio clip data to be loaded or streamed. + /// + API_PROPERTY() FORCE_INLINE bool IsActuallyPlaying() const { return _isActuallyPlayingSth; }