[Scummvm-cvs-logs] SF.net SVN: scummvm: [25927] scummvm/trunk/engines/scumm/he
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Fri Mar 2 16:34:23 CET 2007
Revision: 25927
http://scummvm.svn.sourceforge.net/scummvm/?rev=25927&view=rev
Author: fingolfin
Date: 2007-03-02 07:34:22 -0800 (Fri, 02 Mar 2007)
Log Message:
-----------
cleanup
Modified Paths:
--------------
scummvm/trunk/engines/scumm/he/cup_player_he.cpp
scummvm/trunk/engines/scumm/he/sound_he.cpp
Modified: scummvm/trunk/engines/scumm/he/cup_player_he.cpp
===================================================================
--- scummvm/trunk/engines/scumm/he/cup_player_he.cpp 2007-03-02 15:26:22 UTC (rev 25926)
+++ scummvm/trunk/engines/scumm/he/cup_player_he.cpp 2007-03-02 15:34:22 UTC (rev 25927)
@@ -22,6 +22,7 @@
#include "common/stdafx.h"
#include "common/system.h"
+#include "sound/audiostream.h"
#include "sound/mixer.h"
#include "scumm/scumm.h"
#include "scumm/util.h"
@@ -170,7 +171,8 @@
flags |= Audio::Mixer::FLAG_LOOP;
loopEnd = soundSize - 8;
}
- _mixer->playRaw(Audio::Mixer::kSFXSoundType, &sfxChannel->handle, soundData + 8, soundSize - 8, 11025, flags, -1, 255, 0, 0, loopEnd);
+ _mixer->playInputStream(Audio::Mixer::kSFXSoundType, &sfxChannel->handle,
+ Audio::makeLinearInputStream(soundData + 8, soundSize - 8, 11025, flags, 0, loopEnd));
}
} else {
warning("Unable to find a free channel to play sound %d", sfx->num);
Modified: scummvm/trunk/engines/scumm/he/sound_he.cpp
===================================================================
--- scummvm/trunk/engines/scumm/he/sound_he.cpp 2007-03-02 15:26:22 UTC (rev 25926)
+++ scummvm/trunk/engines/scumm/he/sound_he.cpp 2007-03-02 15:34:22 UTC (rev 25927)
@@ -535,7 +535,7 @@
musicFile.close();
if (_vm->_game.heversion == 70) {
- _mixer->playRaw(type, &_heSoundChannels[heChannel], spoolPtr, size, 11025, flags, soundID, 255, 0, 0, 0);
+ _mixer->playRaw(type, &_heSoundChannels[heChannel], spoolPtr, size, 11025, flags, soundID);
return;
}
}
@@ -586,7 +586,7 @@
}
_mixer->stopHandle(_heSoundChannels[heChannel]);
- _mixer->playRaw(type, &_heSoundChannels[heChannel], sound, size, rate, flags, soundID, 255, 0, 0,0);
+ _mixer->playRaw(type, &_heSoundChannels[heChannel], sound, size, rate, flags, soundID);
}
// Support for sound in Humongous Entertainment games
else if (READ_BE_UINT32(ptr) == MKID_BE('DIGI') || READ_BE_UINT32(ptr) == MKID_BE('TALK')) {
@@ -642,7 +642,7 @@
}
_mixer->stopHandle(_heSoundChannels[heChannel]);
- _mixer->playRaw(type, &_heSoundChannels[heChannel], ptr + heOffset + 8, size, rate, flags, soundID, 255, 0, 0,0);
+ _mixer->playRaw(type, &_heSoundChannels[heChannel], ptr + heOffset + 8, size, rate, flags, soundID);
}
// Support for PCM music in 3DO versions of Humongous Entertainment games
@@ -660,7 +660,7 @@
_mixer->stopID(_currentMusic);
_currentMusic = soundID;
- _mixer->playRaw(Audio::Mixer::kMusicSoundType, NULL, ptr + 8, size, rate, flags, soundID, 255, 0, 0,0);
+ _mixer->playRaw(Audio::Mixer::kMusicSoundType, NULL, ptr + 8, size, rate, flags, soundID);
}
else if (READ_BE_UINT32(ptr) == MKID_BE('MIDI')) {
if (_vm->_imuse) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list