Skip to content

Commit 97d79f0

Browse files
committed
Fix internal buffers not getting marked as started
1 parent d3cc336 commit 97d79f0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/FAudio_internal.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,11 +652,12 @@ static void FAudio_INTERNAL_DecodeBuffers(
652652
try_collect_unaligned_data(voice);
653653

654654
/* Start-of-buffer behavior */
655-
if (!buffer->sent_OnStartBuffer && !buffer->internal)
655+
if (!buffer->sent_OnStartBuffer)
656656
{
657657
buffer->sent_OnStartBuffer = true;
658658

659-
if ( voice->src.callback != NULL &&
659+
if ( !buffer->internal &&
660+
voice->src.callback != NULL &&
660661
voice->src.callback->OnBufferStart != NULL )
661662
{
662663
FAudio_PlatformUnlockMutex(voice->src.bufferLock);

0 commit comments

Comments
 (0)