Add validation for the pitch in ma_sound_set_pitch().

This commit is contained in:
David Reid
2022-01-14 21:21:29 +10:00
parent 28ba62cb9d
commit dd2441a407
+4
View File
@@ -72687,6 +72687,10 @@ MA_API void ma_sound_set_pitch(ma_sound* pSound, float pitch)
return;
}
if (pitch <= 0) {
return;
}
c89atomic_exchange_explicit_f32(&pSound->engineNode.pitch, pitch, c89atomic_memory_order_release);
}