aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--simon/simon.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp
index 2c42582cf4..514b6a3dcc 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -8382,9 +8382,9 @@ void SimonState::playVoice(uint voice) {
uint32 samples_per_sec = 1000000L/(256L-(long)voc_block_hdr.tc);
byte *buffer = (byte*)malloc(size);
- fread(buffer, size, 1, _effects_file);
+ fread(buffer, size, 1, _voice_file);
- _mixer->play_raw(&_effects_sound, buffer, size, samples_per_sec,
+ _mixer->play_raw(&_voice_sound, buffer, size, samples_per_sec,
SoundMixer::FLAG_UNSIGNED);
}
}