aboutsummaryrefslogtreecommitdiff
path: root/sound/mixer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sound/mixer.cpp')
-rw-r--r--sound/mixer.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/mixer.cpp b/sound/mixer.cpp
index 28b7183665..6882eb50bf 100644
--- a/sound/mixer.cpp
+++ b/sound/mixer.cpp
@@ -127,9 +127,7 @@ SoundMixer::SoundMixer() {
SoundMixer::~SoundMixer() {
_syst->clear_sound_proc();
- for (int i = 0; i != NUM_CHANNELS; i++) {
- delete _channels[i];
- }
+ stopAll();
_syst->delete_mutex(_mutex);
}
@@ -164,7 +162,7 @@ void SoundMixer::appendStream(PlayingSoundHandle handle, void *sound, uint32 siz
chan = (ChannelStream*)_channels[index];
#endif
if (!chan) {
- error("Trying to append to nonexistant streamer : %d", index);
+ error("Trying to append to nonexistant stream : %d", index);
} else {
chan->append(sound, size);
}