diff options
Diffstat (limited to 'sound/mixer.cpp')
-rw-r--r-- | sound/mixer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/mixer.cpp b/sound/mixer.cpp index 1a84590f6a..2ed358d2fe 100644 --- a/sound/mixer.cpp +++ b/sound/mixer.cpp @@ -65,8 +65,7 @@ void SoundMixer::on_generate_samples(void *s, byte *samples, int len) { ((SoundMixer*)s)->mix((int16*)samples, len>>1); } -bool SoundMixer::bind_to_system(OSystem *syst) { - //_volume_table = (int16*)malloc(256 * sizeof(int16)); +bool SoundMixer::bind_to_system(OSystem *syst) { _volume_table = (int16*)calloc(256*sizeof(int16),1); uint rate = (uint)syst->property(OSystem::PROP_GET_SAMPLE_RATE, 0); |