aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/sound.cpp
diff options
context:
space:
mode:
authorKari Salminen2008-04-15 23:00:34 +0000
committerKari Salminen2008-04-15 23:00:34 +0000
commit719c85f0ca8ac8a0c35dca5cb9caade00d14e54e (patch)
tree570c123659c1417fe2e4c623be59b528d6d7f32e /engines/agi/sound.cpp
parent875ee5c913fb3928ce07fc5ea1d53d50bb9ef1f5 (diff)
downloadscummvm-rg350-719c85f0ca8ac8a0c35dca5cb9caade00d14e54e.tar.gz
scummvm-rg350-719c85f0ca8ac8a0c35dca5cb9caade00d14e54e.tar.bz2
scummvm-rg350-719c85f0ca8ac8a0c35dca5cb9caade00d14e54e.zip
Make convertWave-function static as it uses no member variables.
svn-id: r31510
Diffstat (limited to 'engines/agi/sound.cpp')
-rw-r--r--engines/agi/sound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agi/sound.cpp b/engines/agi/sound.cpp
index 58cda77ce7..31c722fe59 100644
--- a/engines/agi/sound.cpp
+++ b/engines/agi/sound.cpp
@@ -111,7 +111,7 @@ IIgsSample::IIgsSample(uint8 *data, uint32 len, int resnum, SoundMgr &manager) :
stream.seek(sampleStartPos);
_sample = new int8[_header.sampleSize];
if (_sample != NULL)
- _isValid = _manager.convertWave(stream, _sample, _header.sampleSize);
+ _isValid = SoundMgr::convertWave(stream, _sample, _header.sampleSize);
}
if (!_isValid) // Check for errors
@@ -1065,7 +1065,7 @@ bool SoundMgr::loadInstruments() {
Common::SharedPtr<Common::MemoryReadStream> uint8Wave = loadWaveFile(waveFsnode->getPath(), *exeInfo);
if (uint8Wave && loadInstrumentHeaders(exeFsnode->getPath(), *exeInfo)) {
_gsWave.resize(uint8Wave->size()); // Allocate space for the 8-bit signed version of the SIERRASTANDARD-file
- return convertWave(*uint8Wave, _gsWave.begin(), uint8Wave->size());
+ return SoundMgr::convertWave(*uint8Wave, _gsWave.begin(), uint8Wave->size());
} else // Error loading the wave file or the instrument headers
return false;
}