[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11085] branches/soc-2007-hcube/source/ blender/src/editseq.c: Now calculates sample len correctly.
Csaba Hruska
csaba.hruska at gmail.com
Wed Jun 27 15:36:23 CEST 2007
Revision: 11085
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11085
Author: hcube
Date: 2007-06-27 15:36:23 +0200 (Wed, 27 Jun 2007)
Log Message:
-----------
Now calculates sample len correctly.
Modified Paths:
--------------
branches/soc-2007-hcube/source/blender/src/editseq.c
Modified: branches/soc-2007-hcube/source/blender/src/editseq.c
===================================================================
--- branches/soc-2007-hcube/source/blender/src/editseq.c 2007-06-27 13:35:49 UTC (rev 11084)
+++ branches/soc-2007-hcube/source/blender/src/editseq.c 2007-06-27 13:36:23 UTC (rev 11085)
@@ -721,7 +721,8 @@
//audio_makestream(sound);
//totframe= (int) ( ((float)(sound->streamlen-1)/( (float)G.scene->audio.mixrate*4.0 ))* (float)G.scene->r.frs_sec);
- totframe = sound->sample->len;
+ totframe= (int) ( ((float)(sound->sample->len-1)/( (float)sound->sample->rate ))* (float)G.scene->r.frs_sec);
+ //totframe = sound->sample->len;
/* make seq */
seq= alloc_sequence(((Editing *)G.scene->ed)->seqbasep, cfra, machine);
More information about the Bf-blender-cvs
mailing list