From 3e56c3a40973d89c0ae6f95d46d2f982becdde1a Mon Sep 17 00:00:00 2001 From: Chris Apers Date: Sun, 1 Mar 2009 10:25:33 +0000 Subject: PalmOS Backend updates: - Removed old clearScreen backend method and keep it for internal use only - Fixed save path with missing end slash - Added use of the new audio mixer - Added new file system factory - Added missing getOverlayWidth/Height - Changed color encoding from int16 to uint16 as required by the new ScummVM code - Fixed ColorMasks use with missing namespace svn-id: r39028 --- backends/platform/PalmOS/Src/os5ex_sound.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'backends/platform/PalmOS/Src/os5ex_sound.cpp') diff --git a/backends/platform/PalmOS/Src/os5ex_sound.cpp b/backends/platform/PalmOS/Src/os5ex_sound.cpp index 77569e2548..f27f5a202d 100644 --- a/backends/platform/PalmOS/Src/os5ex_sound.cpp +++ b/backends/platform/PalmOS/Src/os5ex_sound.cpp @@ -24,11 +24,16 @@ */ #include "be_os5ex.h" +#include "sound/mixer_intern.h" static SYSTEM_CALLBACK Err sndCallbackEx(void* UserDataP, SndStreamRef stream, void* bufferP, UInt32 *bufferSizeP) { CALLBACK_PROLOGUE SoundType *_sound = ((SoundExType *)UserDataP)->sound; - ((SoundProc)_sound->proc)(_sound->param, (byte *)bufferP, *bufferSizeP); +// ((SoundProc)_sound->proc)(_sound->param, (byte *)bufferP, *bufferSizeP); + + Audio::MixerImpl *_mixerMgr = ( Audio::MixerImpl *)_sound->param; + _mixerMgr->mixCallback((byte *)bufferP, *bufferSizeP); + CALLBACK_EPILOGUE return errNone; } -- cgit v1.2.3