aboutsummaryrefslogtreecommitdiff
path: root/sound/mixer.cpp
diff options
context:
space:
mode:
authorLudvig Strigeus2002-04-16 12:07:19 +0000
committerLudvig Strigeus2002-04-16 12:07:19 +0000
commit71eac5acd30cb1fd48cbfbc464b4a37adee8a6b4 (patch)
tree8b6e4950c5dd6805344f8051cac517461691d76d /sound/mixer.cpp
parentd91b85049fc8d40cd9ac5ac42fef2d4f1008d63e (diff)
downloadscummvm-rg350-71eac5acd30cb1fd48cbfbc464b4a37adee8a6b4.tar.gz
scummvm-rg350-71eac5acd30cb1fd48cbfbc464b4a37adee8a6b4.tar.bz2
scummvm-rg350-71eac5acd30cb1fd48cbfbc464b4a37adee8a6b4.zip
endian fixes,
don't use adlib driver if sound initialization fails, simon1 savedialog works svn-id: r3955
Diffstat (limited to 'sound/mixer.cpp')
-rw-r--r--sound/mixer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/mixer.cpp b/sound/mixer.cpp
index add23d9e91..084dced7d8 100644
--- a/sound/mixer.cpp
+++ b/sound/mixer.cpp
@@ -55,7 +55,7 @@ void SoundMixer::on_generate_samples(void *s, byte *samples, int len) {
((SoundMixer*)s)->mix((int16*)samples, len>>1);
}
-void SoundMixer::bind_to_system(OSystem *syst) {
+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);
@@ -65,7 +65,7 @@ void SoundMixer::bind_to_system(OSystem *syst) {
if (rate == 0)
error("OSystem returned invalid sample rate");
- syst->set_sound_proc(this, on_generate_samples, OSystem::SOUND_16BIT);
+ return syst->set_sound_proc(this, on_generate_samples, OSystem::SOUND_16BIT);
}
void SoundMixer::stop_all() {