Merged 15170:15635 from trunk (no conflicts or even merges)
[blender.git] / source / blender / src / editsound.c
index d895bfe4de7add7d84a944f5e7d5b7fb088c7b28..05eb094a7c21a3b13b8533eb62c27ed623afb719 100644 (file)
@@ -1,15 +1,12 @@
 /**
  * $Id$
  *
- * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
+ * ***** BEGIN GPL LICENSE BLOCK *****
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
  * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version. The Blender
- * Foundation also sells licenses for use in proprietary software under
- * the Blender License.  See http://www.blender.org/BL/ for information
- * about this.
+ * of the License, or (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -27,7 +24,7 @@
  *
  * Contributor(s): none yet.
  *
- * ***** END GPL/BL DUAL LICENSE BLOCK *****
+ * ***** END GPL LICENSE BLOCK *****
  */
 
 #include <stdio.h>
@@ -151,7 +148,7 @@ void winqreadsoundspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
                                        first= 0;
                                        CFRA= cfra;
                                        update_for_newframe();
-                                       force_draw_plus(SPACE_VIEW3D, 1);
+                                       force_draw_all(0);
                                }
                                else PIL_sleep_ms(30);
                        
@@ -716,7 +713,7 @@ bSound *sound_new_sound(char *name)
        if (!G.scene->audio.mixrate) G.scene->audio.mixrate = 44100;
        /* convert the name to absolute path */
        strcpy(str, name);
-       BLI_convertstringcode(str, G.sce, G.scene->r.cfra);
+       BLI_convertstringcode(str, G.sce);
 
        /* check if the sample on disk can be opened */
        file = open(str, O_BINARY|O_RDONLY);
@@ -828,7 +825,7 @@ bSample *sound_new_sample(bSound *sound)
                /* TODO: increase sound->name, sample->name and strip->name to FILE_MAX, to avoid
                   cutting off sample name here - elubie */
                BLI_strncpy(samplename, sound->name, FILE_MAX);         
-               BLI_convertstringcode(samplename, G.sce, G.scene->r.cfra);
+               BLI_convertstringcode(samplename, G.sce);
                BLI_strncpy(sample->name, samplename, FILE_MAXDIR);
 
                /* connect the pf to the sample */
@@ -852,13 +849,13 @@ bSample *sound_find_sample(bSound *sound)
        
        // convert sound->name to abolute filename
        strcpy(name, sound->name);
-       BLI_convertstringcode(name, G.sce, G.scene->r.cfra);
+       BLI_convertstringcode(name, G.sce);
        
        /* search through the list of loaded samples */
        sample = samples->first;
        while (sample) {
                strcpy(samplename, sample->name);
-               BLI_convertstringcode(samplename, G.sce, G.scene->r.cfra);
+               BLI_convertstringcode(samplename, G.sce);
                
                if (strcmp(name, samplename) == 0)      {
                        break;