From ed5964c9f66d429f7abffeddd5b5a0519a1f9eea Mon Sep 17 00:00:00 2001 From: HeroesOfBalkan Date: Mon, 13 Jan 2025 12:16:38 +0100 Subject: [PATCH] Fix unused and unitialized variable warning --- miniaudio.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/miniaudio.h b/miniaudio.h index 2f4d61aa..02d5016a 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -57825,6 +57825,9 @@ MA_API ma_result ma_data_source_seek_seconds(ma_data_source* pDataSource, float return result; } + /* We need PCM frames instead of seconds */ + frameCount = secondCount * sampleRate; + result = ma_data_source_seek_pcm_frames(pDataSource, frameCount, &framesSeeked); /* VC6 doesn't support division between unsigned 64-bit integer and floating point number. Signed integer needed. This shouldn't affect anything in practice */