Commit 9da8df1b authored by HeroesOfBalkan's avatar HeroesOfBalkan Committed by David Reid

Add explicit casts to suppress -Wfloat-conversion warnings

parent ed5964c9
...@@ -57826,7 +57826,7 @@ MA_API ma_result ma_data_source_seek_seconds(ma_data_source* pDataSource, float ...@@ -57826,7 +57826,7 @@ MA_API ma_result ma_data_source_seek_seconds(ma_data_source* pDataSource, float
} }
/* We need PCM frames instead of seconds */ /* We need PCM frames instead of seconds */
frameCount = secondCount * sampleRate; frameCount = (ma_uint64)(secondCount * sampleRate);
result = ma_data_source_seek_pcm_frames(pDataSource, frameCount, &framesSeeked); result = ma_data_source_seek_pcm_frames(pDataSource, frameCount, &framesSeeked);
...@@ -57851,7 +57851,7 @@ MA_API ma_result ma_data_source_seek_to_second(ma_data_source* pDataSource, floa ...@@ -57851,7 +57851,7 @@ MA_API ma_result ma_data_source_seek_to_second(ma_data_source* pDataSource, floa
} }
/* We need PCM frames instead of seconds */ /* We need PCM frames instead of seconds */
frameIndex = secondIndex * sampleRate; frameIndex = (ma_uint64)(secondIndex * sampleRate);
return ma_data_source_seek_to_pcm_frame(pDataSource, frameIndex); return ma_data_source_seek_to_pcm_frame(pDataSource, frameIndex);
} }
...@@ -77470,7 +77470,7 @@ MA_API ma_result ma_sound_seek_to_second(ma_sound* pSound, float secondIndex) ...@@ -77470,7 +77470,7 @@ MA_API ma_result ma_sound_seek_to_second(ma_sound* pSound, float secondIndex)
} }
/* We need PCM frames. We need to convert first */ /* We need PCM frames. We need to convert first */
frameIndex = secondIndex * sampleRate; frameIndex = (ma_uint64)(secondIndex * sampleRate);
return ma_sound_seek_to_pcm_frame(pSound, frameIndex); return ma_sound_seek_to_pcm_frame(pSound, frameIndex);
} }
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