diff options
author | Max Horn | 2006-04-29 22:33:31 +0000 |
---|---|---|
committer | Max Horn | 2006-04-29 22:33:31 +0000 |
commit | 27307acd7c6f9f9083bdcad38ba54f18d4f080b7 (patch) | |
tree | fd7360382a19b07dcca9b711080b3f6c8f64fd38 /engines/sword1/music.cpp | |
parent | ac0ae13bee890b78442788abe6b87e514c9928a0 (diff) | |
download | scummvm-rg350-27307acd7c6f9f9083bdcad38ba54f18d4f080b7.tar.gz scummvm-rg350-27307acd7c6f9f9083bdcad38ba54f18d4f080b7.tar.bz2 scummvm-rg350-27307acd7c6f9f9083bdcad38ba54f18d4f080b7.zip |
Moved the AudioCDManager as well as class AudioStream and its (standard) subclasses to namespace Audio
svn-id: r22231
Diffstat (limited to 'engines/sword1/music.cpp')
-rw-r--r-- | engines/sword1/music.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sword1/music.cpp b/engines/sword1/music.cpp index 6ea75da4c7..fe3b90c052 100644 --- a/engines/sword1/music.cpp +++ b/engines/sword1/music.cpp @@ -47,7 +47,7 @@ WaveAudioStream::WaveAudioStream(Common::File *source, uint32 pSize) { _sourceFile = source; _sampleBuf = (uint8*)malloc(SMP_BUFSIZE); _sourceFile->incRef(); - if (_sourceFile->isOpen() && loadWAVFromStream(*_sourceFile, size, rate, flags)) { + if (_sourceFile->isOpen() && Audio::loadWAVFromStream(*_sourceFile, size, rate, flags)) { _isStereo = (flags & Audio::Mixer::FLAG_STEREO) != 0; _rate = rate; if (pSize && (int)pSize < size) @@ -107,16 +107,16 @@ bool WaveAudioStream::endOfData(void) const { // These functions are only called from Music, so I'm just going to // assume that if locking is needed it has already been taken care of. -AudioStream *MusicHandle::createAudioSource(void) { +Audio::AudioStream *MusicHandle::createAudioSource(void) { _file.seek(0); switch (_musicMode) { #ifdef USE_MAD case MusicMp3: - return makeMP3Stream(&_file, _file.size()); + return Audio::makeMP3Stream(&_file, _file.size()); #endif #ifdef USE_VORBIS case MusicVorbis: - return makeVorbisStream(&_file, _file.size()); + return Audio::makeVorbisStream(&_file, _file.size()); #endif case MusicWave: return makeWaveStream(&_file, 0); |