[Scummvm-cvs-logs] CVS: scummvm/sound mixer.cpp,1.28,1.29
Nicolas Bacca
arisme at users.sourceforge.net
Thu Nov 21 00:47:01 CET 2002
- Previous message: [Scummvm-cvs-logs] CVS: scummvm Makefile.common,1.35,1.36
- Next message: [Scummvm-cvs-logs] CVS: scummvm/gui EditTextWidget.cpp,NONE,1.1 EditTextWidget.h,NONE,1.1 chooser.cpp,NONE,1.1 chooser.h,NONE,1.1 ListWidget.cpp,1.13,1.14 ListWidget.h,1.10,1.11 launcher.cpp,1.17,1.18 module.mk,1.1,1.2 newgui.cpp,1.29,1.30 newgui.h,1.16,1.17
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/sound
In directory sc8-pr-cvs1:/tmp/cvs-serv30269
Modified Files:
mixer.cpp
Log Message:
Adapt MAD sampling rate to the real sampling rate for WinCE
Index: mixer.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/mixer.cpp,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- mixer.cpp 19 Nov 2002 01:50:15 -0000 1.28
+++ mixer.cpp 21 Nov 2002 08:46:01 -0000 1.29
@@ -777,8 +777,9 @@
mad_stream_init(&_stream);
#ifdef _WIN32_WCE
- // 11 kHz on WinCE
- mad_stream_options(&_stream, MAD_OPTION_HALFSAMPLERATE);
+ // 11 kHz on WinCE if necessary
+ if ((uint)_mixer->_syst->property(OSystem::PROP_GET_SAMPLE_RATE, 0) != 22050)
+ mad_stream_options(&_stream, MAD_OPTION_HALFSAMPLERATE);
#endif
mad_frame_init(&_frame);
mad_synth_init(&_synth);
@@ -896,8 +897,9 @@
mad_stream_init(&_stream);
#ifdef _WIN32_WCE
- // 11 kHz on WinCE
- mad_stream_options(&_stream, MAD_OPTION_HALFSAMPLERATE);
+ // 11 kHz on WinCE if necessary
+ if ((uint)_mixer->_syst->property(OSystem::PROP_GET_SAMPLE_RATE, 0) != 22050)
+ mad_stream_options(&_stream, MAD_OPTION_HALFSAMPLERATE);
#endif
mad_frame_init(&_frame);
mad_synth_init(&_synth);
- Previous message: [Scummvm-cvs-logs] CVS: scummvm Makefile.common,1.35,1.36
- Next message: [Scummvm-cvs-logs] CVS: scummvm/gui EditTextWidget.cpp,NONE,1.1 EditTextWidget.h,NONE,1.1 chooser.cpp,NONE,1.1 chooser.h,NONE,1.1 ListWidget.cpp,1.13,1.14 ListWidget.h,1.10,1.11 launcher.cpp,1.17,1.18 module.mk,1.1,1.2 newgui.cpp,1.29,1.30 newgui.h,1.16,1.17
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list