Skip to content

Commit

Permalink
Fixes .__IsPlaying() check for HLT and Queue patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
JujuAdams committed Oct 5, 2024
1 parent a83c985 commit e98d46b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/__VinylClassVoiceHLT/__VinylClassVoiceHLT.gml
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ function __VinylClassVoiceHLT(_emitter, _pattern, _gainLocal, _pitchLocal, _duck

static __IsPlaying = function()
{
return (__voiceCurrent >= 0);
return ((__state != __VINYL_HLT_STATE.__TAIL) || audio_is_playing(__voiceCurrent));
}

static __WillStop = function()
Expand Down
2 changes: 1 addition & 1 deletion scripts/__VinylClassVoiceQueue/__VinylClassVoiceQueue.gml
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function __VinylClassVoiceQueue(_templateName, _behaviour, _loopQueue, _gainLoca

static __IsPlaying = function()
{
return (__voiceCurrent >= 0);
return audio_is_playing(__voiceCurrent);
}

static __WillStop = function()
Expand Down

0 comments on commit e98d46b

Please sign in to comment.