[Scummvm-cvs-logs] SF.net SVN: scummvm:[47016] scummvm/trunk/sound/rate.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Tue Jan 5 03:48:38 CET 2010


Revision: 47016
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47016&view=rev
Author:   lordhoto
Date:     2010-01-05 02:48:38 +0000 (Tue, 05 Jan 2010)

Log Message:
-----------
Oops somehow I must have missed CopyRateConverter::flow, in r47014.

Modified Paths:
--------------
    scummvm/trunk/sound/rate.cpp

Modified: scummvm/trunk/sound/rate.cpp
===================================================================
--- scummvm/trunk/sound/rate.cpp	2010-01-05 02:42:55 UTC (rev 47015)
+++ scummvm/trunk/sound/rate.cpp	2010-01-05 02:48:38 UTC (rev 47016)
@@ -288,6 +288,8 @@
 		st_sample_t *ptr;
 		st_size_t len;
 
+		st_sample_t *ostart = obuf;
+
 		if (stereo)
 			osamp *= 2;
 
@@ -316,7 +318,7 @@
 
 			obuf += 2;
 		}
-		return ST_SUCCESS;
+		return (obuf - ostart) / 2;
 	}
 
 	virtual int drain(st_sample_t *obuf, st_size_t osamp, st_volume_t vol) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list