Commit ed5964c9 authored by HeroesOfBalkan's avatar HeroesOfBalkan Committed by David Reid

Fix unused and unitialized variable warning

parent 7e81d3ac
...@@ -57825,6 +57825,9 @@ MA_API ma_result ma_data_source_seek_seconds(ma_data_source* pDataSource, float ...@@ -57825,6 +57825,9 @@ MA_API ma_result ma_data_source_seek_seconds(ma_data_source* pDataSource, float
return result; return result;
} }
/* We need PCM frames instead of seconds */
frameCount = secondCount * sampleRate;
result = ma_data_source_seek_pcm_frames(pDataSource, frameCount, &framesSeeked); 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 */ /* VC6 doesn't support division between unsigned 64-bit integer and floating point number. Signed integer needed. This shouldn't affect anything in practice */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment