[Bf-blender-cvs] [e09464a] gooseberry: Speed of sound would get reset when stopping and resuming.

Antony Riakiotakis noreply at git.blender.org
Wed May 20 19:15:18 CEST 2015


Commit: e09464a26b77dd64bacbd0e4ad82c8c7feb2ea0b
Author: Antony Riakiotakis
Date:   Wed May 20 19:14:59 2015 +0200
Branches: gooseberry
https://developer.blender.org/rBe09464a26b77dd64bacbd0e4ad82c8c7feb2ea0b

Speed of sound would get reset when stopping and resuming.

===================================================================

M	source/blender/windowmanager/intern/wm_playanim.c

===================================================================

diff --git a/source/blender/windowmanager/intern/wm_playanim.c b/source/blender/windowmanager/intern/wm_playanim.c
index 8d43e22..535c49a 100644
--- a/source/blender/windowmanager/intern/wm_playanim.c
+++ b/source/blender/windowmanager/intern/wm_playanim.c
@@ -529,8 +529,10 @@ static void change_frame(PlayState *ps, int cx)
 		if (status != AUD_STATUS_PLAYING) {
 			AUD_stop(playback_handle);
 			playback_handle = AUD_play(source, 1);
-			if (playback_handle)
+			if (playback_handle) {
 				AUD_seek(playback_handle, i / fps_movie);
+			}
+			update_sound_fps();
 		}
 		else {
 			AUD_seek(playback_handle, i / fps_movie);
@@ -784,6 +786,7 @@ static int ghost_event_proc(GHOST_EventHandle evt, GHOST_TUserDataPtr ps_void)
 							playback_handle = AUD_play(source, 1);
 							if (playback_handle)
 								AUD_seek(playback_handle, i / fps_movie);
+							update_sound_fps();
 						}
 #endif
 					}




More information about the Bf-blender-cvs mailing list