[Scummvm-cvs-logs] scummvm master -> c9b1dd37c5abceda2d9a6415d474c0b980c1f5cf
clone2727
clone2727 at gmail.com
Tue Feb 26 00:08:45 CET 2013
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
c9b1dd37c5 HOPKINS: Don't have the TWA/APC code in the Audio namespace
Commit: c9b1dd37c5abceda2d9a6415d474c0b980c1f5cf
https://github.com/scummvm/scummvm/commit/c9b1dd37c5abceda2d9a6415d474c0b980c1f5cf
Author: Matthew Hoops (clone2727 at gmail.com)
Date: 2013-02-25T07:32:12-08:00
Commit Message:
HOPKINS: Don't have the TWA/APC code in the Audio namespace
Changed paths:
engines/hopkins/sound.cpp
diff --git a/engines/hopkins/sound.cpp b/engines/hopkins/sound.cpp
index 43bceb0..de8b111 100644
--- a/engines/hopkins/sound.cpp
+++ b/engines/hopkins/sound.cpp
@@ -35,7 +35,7 @@
#include "audio/mods/protracker.h"
#include "audio/decoders/raw.h"
-namespace Audio {
+namespace Hopkins {
class APC_ADPCMStream : public Audio::DVI_ADPCMStream {
public:
@@ -70,7 +70,7 @@ Audio::RewindableAudioStream *makeAPCStream(Common::SeekableReadStream *stream,
return new APC_ADPCMStream(stream, disposeAfterUse, rate, stereo ? 2 : 1);
}
-class TwaAudioStream : public AudioStream {
+class TwaAudioStream : public Audio::AudioStream {
public:
TwaAudioStream(Common::String name, Common::SeekableReadStream *stream) {
_name = name;
@@ -152,7 +152,7 @@ protected:
Common::File *file = new Common::File();
if (file->open(filename + ".APC")) {
- _cueStream = Audio::makeAPCStream(file, DisposeAfterUse::YES);
+ _cueStream = makeAPCStream(file, DisposeAfterUse::YES);
return true;
}
@@ -184,12 +184,6 @@ Audio::AudioStream *makeTwaStream(Common::String name, Common::SeekableReadStrea
return new TwaAudioStream(name, stream);
}
-}
-
-/*------------------------------------------------------------------------*/
-
-namespace Hopkins {
-
SoundManager::SoundManager() {
_specialSoundNum = 0;
_soundVolume = 0;
@@ -436,7 +430,7 @@ void SoundManager::loadMusic(const Common::String &file) {
if (!f.open(filename))
error("Error opening file %s", filename.c_str());
- Audio::AudioStream *twaStream = Audio::makeTwaStream(file.c_str(), &f);
+ Audio::AudioStream *twaStream = makeTwaStream(file.c_str(), &f);
_vm->_mixer->playStream(Audio::Mixer::kMusicSoundType, &_musicHandle, twaStream);
f.close();
}
@@ -897,7 +891,7 @@ void SoundManager::updateScummVMSoundSettings() {
*/
Audio::RewindableAudioStream *SoundManager::makeSoundStream(Common::SeekableReadStream *stream) {
if (_vm->getPlatform() == Common::kPlatformWindows)
- return Audio::makeAPCStream(stream, DisposeAfterUse::YES);
+ return makeAPCStream(stream, DisposeAfterUse::YES);
else if (_vm->getPlatform() == Common::kPlatformLinux)
return Audio::makeWAVStream(stream, DisposeAfterUse::YES);
else
More information about the Scummvm-git-logs
mailing list