From f67b126f1dee9e14a28d555f10cd556f173b9e3a Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 7 Aug 2003 22:19:55 +0000 Subject: 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 . Need sleep svn-id: r9588 --- sound/audiostream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sound/audiostream.h') 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(); -- cgit v1.2.3