Fix some warnings with GCC.

This commit is contained in:
David Reid
2025-01-11 08:47:29 +10:00
parent 3a34c049fa
commit ad615af1a8
+14
View File
@@ -58015,6 +58015,13 @@ MA_API void ma_data_source_get_range_in_pcm_frames(const ma_data_source* pDataSo
{
const ma_data_source_base* pDataSourceBase = (const ma_data_source_base*)pDataSource;
if (pRangeBegInFrames != NULL) {
*pRangeBegInFrames = 0;
}
if (pRangeEndInFrames != NULL) {
*pRangeEndInFrames = 0;
}
if (pDataSource == NULL) {
return;
}
@@ -58059,6 +58066,13 @@ MA_API void ma_data_source_get_loop_point_in_pcm_frames(const ma_data_source* pD
{
const ma_data_source_base* pDataSourceBase = (const ma_data_source_base*)pDataSource;
if (pLoopBegInFrames != NULL) {
*pLoopBegInFrames = 0;
}
if (pLoopEndInFrames != NULL) {
*pLoopEndInFrames = 0;
}
if (pDataSource == NULL) {
return;
}