Commit dd2441a4 authored by David Reid's avatar David Reid

Add validation for the pitch in ma_sound_set_pitch().

parent 28ba62cb
......@@ -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);
}
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