From d485d0c2959a57141bed12be95f69d1a0c7fb4d6 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Tue, 5 Jan 2010 02:48:38 +0000 Subject: Oops somehow I must have missed CopyRateConverter::flow, in r47014. svn-id: r47016 --- sound/rate.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sound/rate.cpp b/sound/rate.cpp index 2321852b8e..fbc4873ba4 100644 --- a/sound/rate.cpp +++ b/sound/rate.cpp @@ -288,6 +288,8 @@ public: st_sample_t *ptr; st_size_t len; + st_sample_t *ostart = obuf; + if (stereo) osamp *= 2; @@ -316,7 +318,7 @@ public: obuf += 2; } - return ST_SUCCESS; + return (obuf - ostart) / 2; } virtual int drain(st_sample_t *obuf, st_size_t osamp, st_volume_t vol) { -- cgit v1.2.3