Audio playback in TimeLine should not use 'scrubbing' option in the
authorTon Roosendaal <ton@blender.org>
Tue, 24 May 2005 19:33:04 +0000 (19:33 +0000)
committerTon Roosendaal <ton@blender.org>
Tue, 24 May 2005 19:33:04 +0000 (19:33 +0000)
update_for_newframe() call.

source/blender/src/editscreen.c

index 020cd608b5eb47dd951e579587f1626e628ea714..20cada29b95e7b667820d613495189b84f504987 100644 (file)
@@ -1007,10 +1007,7 @@ int has_screenhandler(bScreen *sc, short eventcode)
 
 static void animated_screen(bScreen *sc, short val)
 {
 
 static void animated_screen(bScreen *sc, short val)
 {
-       int mute= 1;
-       
        if (U.mixbufsize && (val & TIME_WITH_SEQ_AUDIO)) {
        if (U.mixbufsize && (val & TIME_WITH_SEQ_AUDIO)) {
-               mute= 0;
                if(CFRA>=EFRA) {
                        CFRA= SFRA;
                        audiostream_stop();
                if(CFRA>=EFRA) {
                        CFRA= SFRA;
                        audiostream_stop();
@@ -1027,7 +1024,7 @@ static void animated_screen(bScreen *sc, short val)
                if(CFRA > EFRA) CFRA= SFRA;
        }
        
                if(CFRA > EFRA) CFRA= SFRA;
        }
        
-       update_for_newframe_nodraw(mute);
+       update_for_newframe_nodraw(1);
        
        if(val & TIME_ALL_3D_WIN)
                allqueue(REDRAWVIEW3D, 0);
        
        if(val & TIME_ALL_3D_WIN)
                allqueue(REDRAWVIEW3D, 0);