diff options
author | James Brown | 2004-02-08 17:19:09 +0000 |
---|---|---|
committer | James Brown | 2004-02-08 17:19:09 +0000 |
commit | 9301f0b0ff7f77e919c409e446fffd1fd2f95903 (patch) | |
tree | 46992f74afc3f80773231a9812031d101c3aef2f /sound | |
parent | 587622d664777c3670c9222424e379726b88bb81 (diff) | |
download | scummvm-rg350-9301f0b0ff7f77e919c409e446fffd1fd2f95903.tar.gz scummvm-rg350-9301f0b0ff7f77e919c409e446fffd1fd2f95903.tar.bz2 scummvm-rg350-9301f0b0ff7f77e919c409e446fffd1fd2f95903.zip |
Change AppendableMemoryStream overflows to debug messages, so people stop believing them to be the cause of errors in bug reports :P
svn-id: r12775
Diffstat (limited to 'sound')
-rw-r--r-- | sound/audiostream.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/audiostream.cpp b/sound/audiostream.cpp index f055c0c1ec..b8ec6d2220 100644 --- a/sound/audiostream.cpp +++ b/sound/audiostream.cpp @@ -225,7 +225,7 @@ void AppendableMemoryStream<stereo, is16Bit, isUnsigned>::append(const byte *dat uint32 size_to_end_of_buffer = _bufferEnd - _end; len -= size_to_end_of_buffer; if ((_end < _pos) || (_bufferStart + len >= _pos)) { - warning("AppendableMemoryStream: buffer overflow (A)"); + debug(2, "AppendableMemoryStream: buffer overflow (A)"); return; } memcpy(_end, data, size_to_end_of_buffer); @@ -233,7 +233,7 @@ void AppendableMemoryStream<stereo, is16Bit, isUnsigned>::append(const byte *dat _end = _bufferStart + len; } else { if ((_end < _pos) && (_end + len >= _pos)) { - warning("AppendableMemoryStream: buffer overflow (B)"); + debug(2, "AppendableMemoryStream: buffer overflow (B)"); return; } memcpy(_end, data, len); |