1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Android: fix float comparisons

float comparison
This commit is contained in:
Anthony Nicholls 2023-05-25 17:13:33 +01:00
parent 61a4a3785a
commit 99138c13f8
3 changed files with 5 additions and 5 deletions

View file

@ -921,7 +921,7 @@ private:
auto* env = getEnv();
// Perform a potentially pending volume setting
if (lastAudioVolume != std::numeric_limits<float>::min())
if (! exactlyEqual (lastAudioVolume, std::numeric_limits<float>::min()))
env->CallVoidMethod (nativeMediaPlayer, AndroidMediaPlayer.setVolume, (jfloat) lastAudioVolume, (jfloat) lastAudioVolume);
env->CallVoidMethod (nativeMediaPlayer, AndroidMediaPlayer.start);