From d8adad386fd4a59b484534e48be5739705b65897 Mon Sep 17 00:00:00 2001 From: James Brown Date: Thu, 14 Mar 2002 14:45:04 +0000 Subject: winCE part 2 - still gui.cpp and scummvm.cpp left svn-id: r3752 --- sound/adlib.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sound/adlib.cpp') diff --git a/sound/adlib.cpp b/sound/adlib.cpp index 792617f388..faa3dd371e 100644 --- a/sound/adlib.cpp +++ b/sound/adlib.cpp @@ -124,7 +124,12 @@ void AdlibSoundDriver::init(SoundEngine *eng) { } _adlib_reg_cache = (byte*)calloc(256,1); - _opl = OPLCreate(OPL_TYPE_YM3812,3579545,22050); + + #ifdef _WIN32_WCE // Poor WIN32 won't handle 22050 well ! + _opl = OPLCreate(OPL_TYPE_YM3812,3579545,11025); + #else + _opl = OPLCreate(OPL_TYPE_YM3812,3579545,22050); + #endif adlib_write(1,0x20); adlib_write(8,0x40); adlib_write(0xBD, 0x00); -- cgit v1.2.3