[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11096] branches/soc-2007-hcube/intern/ tinySND/intern/SND_FXSample.cpp: Fixed misused attributes.

Csaba Hruska csaba.hruska at gmail.com
Thu Jun 28 11:10:36 CEST 2007


Revision: 11096
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11096
Author:   hcube
Date:     2007-06-28 11:10:36 +0200 (Thu, 28 Jun 2007)

Log Message:
-----------
Fixed misused attributes.

Modified Paths:
--------------
    branches/soc-2007-hcube/intern/tinySND/intern/SND_FXSample.cpp

Modified: branches/soc-2007-hcube/intern/tinySND/intern/SND_FXSample.cpp
===================================================================
--- branches/soc-2007-hcube/intern/tinySND/intern/SND_FXSample.cpp	2007-06-28 09:10:06 UTC (rev 11095)
+++ branches/soc-2007-hcube/intern/tinySND/intern/SND_FXSample.cpp	2007-06-28 09:10:36 UTC (rev 11096)
@@ -140,13 +140,13 @@
 float* SND_FXSample::getPCMDataPtr( int framesNum ) 
 {
 	// !!! NOT HANDLES YET: framesNum > mSourceBufferSize
-	float *res = &mSourceBuffer[mSourceBufferPos];
+	float *res = &mSourceBuffer[mFrameCounter];
 	// Not final code, it's just for fun
-	mSourceBufferPos += framesNum;
-	if( mSourceBufferPos > mSourceBufferSize )
+	mFrameCounter += framesNum;
+	if( mFrameCounter > mSourceBufferSize )
 	{
-		mSourceBufferPos = 0;
-		res = &mSourceBuffer[mSourceBufferPos];
+		mFrameCounter = 0;
+		res = &mSourceBuffer[mFrameCounter];
 	}
 	
     // we know wich frames are prepared now, if the requested frames are already prepared then we provide them and dont mix it again





More information about the Bf-blender-cvs mailing list