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:
parent
61a4a3785a
commit
99138c13f8
3 changed files with 5 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue