mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 09:14:04 +02:00
Add explicit casts to suppress -Wfloat-conversion warnings
This commit is contained in:
committed by
David Reid
parent
ed5964c9f6
commit
9da8df1b9f
+3
-3
@@ -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
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* 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)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* 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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user