[Scummvm-cvs-logs] SF.net SVN: scummvm:[43336] scummvm/branches/gsoc2009-mods/engines/kyra/ sound_amiga.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Thu Aug 13 01:25:58 CEST 2009
Revision: 43336
http://scummvm.svn.sourceforge.net/scummvm/?rev=43336&view=rev
Author: lordhoto
Date: 2009-08-12 23:25:58 +0000 (Wed, 12 Aug 2009)
Log Message:
-----------
Made debug statements a bit more consitant.
Modified Paths:
--------------
scummvm/branches/gsoc2009-mods/engines/kyra/sound_amiga.cpp
Modified: scummvm/branches/gsoc2009-mods/engines/kyra/sound_amiga.cpp
===================================================================
--- scummvm/branches/gsoc2009-mods/engines/kyra/sound_amiga.cpp 2009-08-12 23:23:44 UTC (rev 43335)
+++ scummvm/branches/gsoc2009-mods/engines/kyra/sound_amiga.cpp 2009-08-12 23:25:58 UTC (rev 43336)
@@ -80,7 +80,8 @@
}
void SoundAmiga::loadSoundFile(uint file) {
- debug(5, "SoundAmiga: playTrack %d", file);
+ debugC(5, kDebugLevelSound, "SoundAmiga::loadSoundFile(%d)", file);
+
static const char *const tableFilenames[3][2] = {
{ "introscr.mx", "introinst.mx" },
{ "kyramusic.mx", 0 },
@@ -117,7 +118,8 @@
}
void SoundAmiga::playTrack(uint8 track) {
- debug(5, "SoundAmiga: playTrack %d", track);
+ debugC(5, kDebugLevelSound, "SoundAmiga::playTrack(%d)", track);
+
static const byte tempoIntro[6] = { 0x46, 0x55, 0x3C, 0x41, 0x78, 0x50 };
static const byte tempoIngame[23] = {
0x64, 0x64, 0x64, 0x64, 0x64, 0x73, 0x4B, 0x64,
@@ -181,12 +183,12 @@
}
void SoundAmiga::haltTrack() {
- debug(5, "SoundAmiga: haltTrack");
+ debugC(5, kDebugLevelSound, "SoundAmiga::haltTrack()");
_driver->stopMusic();
}
void SoundAmiga::beginFadeOut() {
- debug(5, "SoundAmiga: beginFadeOut");
+ debugC(5, kDebugLevelSound, "SoundAmiga::beginFadeOut()");
for (int i = 0x3F; i >= 0; --i) {
_driver->setVolume((byte)i);
_vm->delay(_vm->tickLength());
@@ -198,7 +200,7 @@
}
void SoundAmiga::playSoundEffect(uint8 track) {
- debug(5, "SoundAmiga: playSoundEffect %d", track);
+ debugC(5, kDebugLevelSound, "SoundAmiga::playSoundEffect(%d)", track);
const byte* tableEntry = 0;
bool pan = false;
@@ -239,3 +241,4 @@
}
} // end of namespace Kyra
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list