From 33b795e252b138e7d9057e360bf812133f4aaee1 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Thu, 28 Oct 2021 20:57:09 -0700 Subject: [PATCH] fix static sound length issue --- src/FAudioGMS.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FAudioGMS.c b/src/FAudioGMS.c index 1356823..a8bf40d 100644 --- a/src/FAudioGMS.c +++ b/src/FAudioGMS.c @@ -511,7 +511,7 @@ double FAudioGMS_StaticSound_LoadWAV(char *filePath) sound->buffer.pAudioData = (uint8_t*) pSampleData; sound->buffer.pContext = NULL; sound->buffer.PlayBegin = 0; - sound->buffer.PlayLength = 0; + sound->buffer.PlayLength = frameCount; sound->loopStart = 0; sound->loopLength = 0;