diff options
author | Sven Hesse | 2007-03-30 17:52:31 +0000 |
---|---|---|
committer | Sven Hesse | 2007-03-30 17:52:31 +0000 |
commit | d65e05841a324d2ec898a3662f40e193fbc77e47 (patch) | |
tree | 55d85a458c0559e6c3d3b060dd54f7385562867a /engines/gob/sound.cpp | |
parent | 33c6a6f46057748a30a143c9eb5dc1f86c813e32 (diff) | |
download | scummvm-rg350-d65e05841a324d2ec898a3662f40e193fbc77e47.tar.gz scummvm-rg350-d65e05841a324d2ec898a3662f40e193fbc77e47.tar.bz2 scummvm-rg350-d65e05841a324d2ec898a3662f40e193fbc77e47.zip |
- Fixed the IMD playing within mults, the non-interactive Gob3 demo should work better now
- Replaced strcpy with strncpy where appropriate
- Added detection entries for other languages of the multilingual Gob3 CD; bug #1691230
svn-id: r26327
Diffstat (limited to 'engines/gob/sound.cpp')
-rw-r--r-- | engines/gob/sound.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/gob/sound.cpp b/engines/gob/sound.cpp index fe5f7ede16..d9c9b10627 100644 --- a/engines/gob/sound.cpp +++ b/engines/gob/sound.cpp @@ -313,6 +313,10 @@ void Snd::setSample(SoundDesc &sndDesc, int16 repCount, int16 frequency, _data = (int8 *) sndDesc.getData(); _length = sndDesc.size(); _freq = frequency; + + if ((frequency % 100) == 0) + _freq--; + _ratio = ((double) _freq) / _rate; _offset = 0.0; _frac = 0; |