aboutsummaryrefslogtreecommitdiff
path: root/sound/audiostream.h
diff options
context:
space:
mode:
authorMax Horn2003-08-07 22:19:55 +0000
committerMax Horn2003-08-07 22:19:55 +0000
commitf67b126f1dee9e14a28d555f10cd556f173b9e3a (patch)
tree31b0cae7f60d05da4c3657ac87b98977e2924aea /sound/audiostream.h
parent51c38eb3e8d10092546d51ca1cf7bdde4a387843 (diff)
downloadscummvm-rg350-f67b126f1dee9e14a28d555f10cd556f173b9e3a.tar.gz
scummvm-rg350-f67b126f1dee9e14a28d555f10cd556f173b9e3a.tar.bz2
scummvm-rg350-f67b126f1dee9e14a28d555f10cd556f173b9e3a.zip
replace code in readBuffer by slightly less efficient but hopefully working code (at least it fixes an endless loop in COMI for me). I did fix the originaly bug in my optimization, and right now I clueless as to why that code isn't working as it should <sigh>. Need sleep
svn-id: r9588
Diffstat (limited to 'sound/audiostream.h')
-rw-r--r--sound/audiostream.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/audiostream.h b/sound/audiostream.h
index a68fbc5526..e75c105f64 100644
--- a/sound/audiostream.h
+++ b/sound/audiostream.h
@@ -60,7 +60,7 @@ public:
* For maximum efficency, subclasses should always override
* the default implementation!
*/
- virtual int readBuffer(int16 *buffer, int numSamples) {
+ virtual int readBuffer(int16 *buffer, const int numSamples) {
int samples;
for (samples = 0; samples < numSamples && !eos(); samples++) {
*buffer++ = read();