diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/audiostream.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/audiostream.cpp b/sound/audiostream.cpp index 40e06eb429..78a20d6e2a 100644 --- a/sound/audiostream.cpp +++ b/sound/audiostream.cpp @@ -205,7 +205,7 @@ int16 VorbisInputStream::read() { int VorbisInputStream::size() const { if (_eof_flag) return 0; - return _end_pos - ov_pcm_tell(_ov_file); + return (_end_pos - ov_pcm_tell(_ov_file)) + (_buffer + ARRAYSIZE(_buffer) - _pos); } void VorbisInputStream::refill() { |