mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
don't use asserts in these tight spots
svn-id: r9420
This commit is contained in:
parent
4cc8c70f25
commit
cc8465aa71
@ -58,7 +58,7 @@ public:
|
||||
assert(len % 2 == 0);
|
||||
}
|
||||
int16 read() {
|
||||
assert(_ptr < _end);
|
||||
//assert(_ptr < _end);
|
||||
int16 val = readSample<is16Bit, isUnsigned>(_ptr);
|
||||
_ptr += (is16Bit ? 2 : 1);
|
||||
if (_loopPtr && _ptr == _end) {
|
||||
@ -114,7 +114,7 @@ WrappedMemoryStream<stereo, is16Bit, isUnsigned>::WrappedMemoryStream(uint buffe
|
||||
|
||||
template<bool stereo, bool is16Bit, bool isUnsigned>
|
||||
int16 WrappedMemoryStream<stereo, is16Bit, isUnsigned>::read() {
|
||||
assert(_pos != _end);
|
||||
//assert(_pos != _end);
|
||||
int16 val = readSample<is16Bit, isUnsigned>(_pos);
|
||||
_pos += (is16Bit ? 2 : 1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user