diff options
author | Johannes Schickel | 2010-01-05 02:48:38 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-01-05 02:48:38 +0000 |
commit | d485d0c2959a57141bed12be95f69d1a0c7fb4d6 (patch) | |
tree | 160b66f230e3dc3b9b35377a6ab8aa07a512e1cc | |
parent | 5b9f267e71e634670cfbcdc92eab164d145e68cf (diff) | |
download | scummvm-rg350-d485d0c2959a57141bed12be95f69d1a0c7fb4d6.tar.gz scummvm-rg350-d485d0c2959a57141bed12be95f69d1a0c7fb4d6.tar.bz2 scummvm-rg350-d485d0c2959a57141bed12be95f69d1a0c7fb4d6.zip |
Oops somehow I must have missed CopyRateConverter::flow, in r47014.
svn-id: r47016
-rw-r--r-- | sound/rate.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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) { |