[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11703] branches/soc-2007-hcube/intern/ tinySND/blender/SND_C-api.cpp: bugfix: now returns the proper mix rate depending on play mode (play or mixdown).

Csaba Hruska csaba.hruska at gmail.com
Sun Aug 19 17:14:05 CEST 2007


Revision: 11703
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11703
Author:   hcube
Date:     2007-08-19 17:14:05 +0200 (Sun, 19 Aug 2007)

Log Message:
-----------
bugfix: now returns the proper mix rate depending on play mode (play or mixdown).

Modified Paths:
--------------
    branches/soc-2007-hcube/intern/tinySND/blender/SND_C-api.cpp

Modified: branches/soc-2007-hcube/intern/tinySND/blender/SND_C-api.cpp
===================================================================
--- branches/soc-2007-hcube/intern/tinySND/blender/SND_C-api.cpp	2007-08-19 15:04:16 UTC (rev 11702)
+++ branches/soc-2007-hcube/intern/tinySND/blender/SND_C-api.cpp	2007-08-19 15:14:05 UTC (rev 11703)
@@ -108,8 +108,18 @@
 int SND_GetMixRate(void)
 {
     assert( gDevice != 0 );
+
+	if(	gPlayTarget == AUDIODEVICE_TARGET )
+	{
+		return (int)gDevice->getSampleRate();
+	}
+	else
+	{
+	    assert( gFileWriter != 0 );
+		return (int)gFileWriter->getSampleRate();
+	}
 	
-	return (int)gDevice->getSampleRate();
+	return 0;
 }
 
 int SND_GetGlobalFrameCounter(void)





More information about the Bf-blender-cvs mailing list