Skip to content

Commit 73338b3

Browse files
committed
xrSound: wait for prefill task before stopping sound playback
Fixes "SOUND: Invalid emitter state" crash.
1 parent 3c8f2a0 commit 73338b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/xrSound/SoundRender_Emitter_StartStop.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ void CSoundRender_Emitter::cancel()
105105

106106
void CSoundRender_Emitter::stop_target()
107107
{
108+
wait_prefill();
108109
R_ASSERT1_CURE(target, true, { return; });
109110
target->stop();
110111
target = nullptr;

0 commit comments

Comments
 (0)