diff options
author | Chris Apers | 2009-03-01 10:25:33 +0000 |
---|---|---|
committer | Chris Apers | 2009-03-01 10:25:33 +0000 |
commit | 3e56c3a40973d89c0ae6f95d46d2f982becdde1a (patch) | |
tree | 8b9d203bac9216dfd2a528e3b47701caa69629ac /backends/platform/PalmOS/Src/os5ex_sound.cpp | |
parent | fdb9cd9ce2c560486a62d959efdaa8519919e279 (diff) | |
download | scummvm-rg350-3e56c3a40973d89c0ae6f95d46d2f982becdde1a.tar.gz scummvm-rg350-3e56c3a40973d89c0ae6f95d46d2f982becdde1a.tar.bz2 scummvm-rg350-3e56c3a40973d89c0ae6f95d46d2f982becdde1a.zip |
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
Diffstat (limited to 'backends/platform/PalmOS/Src/os5ex_sound.cpp')
-rw-r--r-- | backends/platform/PalmOS/Src/os5ex_sound.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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; } |