diff options
author | James Brown | 2002-03-14 14:45:04 +0000 |
---|---|---|
committer | James Brown | 2002-03-14 14:45:04 +0000 |
commit | d8adad386fd4a59b484534e48be5739705b65897 (patch) | |
tree | 9489f4f07b4393adfdb841fc6448f17cf4285253 /sound/adlib.cpp | |
parent | d8ca3d29875813733996c079147a092fd3ead359 (diff) | |
download | scummvm-rg350-d8adad386fd4a59b484534e48be5739705b65897.tar.gz scummvm-rg350-d8adad386fd4a59b484534e48be5739705b65897.tar.bz2 scummvm-rg350-d8adad386fd4a59b484534e48be5739705b65897.zip |
winCE part 2 - still gui.cpp and scummvm.cpp left
svn-id: r3752
Diffstat (limited to 'sound/adlib.cpp')
-rw-r--r-- | sound/adlib.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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); |