Merge branch 'blender-v2.83-release'
[blender.git] / source / blender / windowmanager / intern / wm_event_system.c
index 136c24f8056f37ab33a1f81993f7d250892c985f..8a9f9bc933427b05978842abf38e901468a6d47a 100644 (file)
@@ -3194,9 +3194,9 @@ void wm_event_do_handlers(bContext *C)
           }
 
           if (is_playing_sound == 0) {
-            const float time = BKE_sound_sync_scene(scene_eval);
+            const double time = BKE_sound_sync_scene(scene_eval);
             if (isfinite(time)) {
-              int ncfra = time * (float)FPS + 0.5f;
+              int ncfra = time * FPS + 0.5;
               if (ncfra != scene->r.cfra) {
                 scene->r.cfra = ncfra;
                 ED_update_for_newframe(CTX_data_main(C), depsgraph);