[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11012] branches/soc-2007-hcube/intern/ tinySND/intern/SND_FXSample.cpp: Attributes are setted up in construction.
Csaba Hruska
csaba.hruska at gmail.com
Fri Jun 22 19:00:51 CEST 2007
Revision: 11012
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11012
Author: hcube
Date: 2007-06-22 19:00:50 +0200 (Fri, 22 Jun 2007)
Log Message:
-----------
Attributes are setted up in construction.
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-22 17:00:15 UTC (rev 11011)
+++ branches/soc-2007-hcube/intern/tinySND/intern/SND_FXSample.cpp 2007-06-22 17:00:50 UTC (rev 11012)
@@ -30,6 +30,9 @@
mSourceBufferPos = 0;
mSourceBuffer = new float[size];
mDataProvider->fillBuffer( mSourceBuffer, mChannelNum, size );
+
+ mIsMuted = false;
+ mGain = 1.0;
}
bool SND_FXSample::isMuted(void)
@@ -130,7 +133,7 @@
bool SND_FXSample::isDataAvailable(void)
{
- return !mIsMuted && mGain!=0 && mPlayState==SND_FXSample::STARTED;
+ return !mIsMuted && mGain!=0.0 && mPlayState==SND_FXSample::STARTED;
}
// we can request sound data. do not request big part, only few kilobytes are recommended
More information about the Bf-blender-cvs
mailing list