aboutsummaryrefslogtreecommitdiff
path: root/sound/mixer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sound/mixer.cpp')
-rw-r--r--sound/mixer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/mixer.cpp b/sound/mixer.cpp
index 150e5009e5..8444c31ba0 100644
--- a/sound/mixer.cpp
+++ b/sound/mixer.cpp
@@ -873,7 +873,7 @@ void SoundMixer::ChannelMP3CDMusic::mix(int16 * data, uint len) {
if (!_stream.next_frame) {
memset(_ptr, 0, _bufferSize + MAD_BUFFER_GUARD);
- _size = fread(_ptr, 1, _bufferSize, _file);
+ _size = _file->read(_ptr, _bufferSize);
not_decoded = 0;
} else {
not_decoded = _stream.bufend - _stream.next_frame;