From 12103981b786d81e96ec38cc5ff24c3ce3bd9909 Mon Sep 17 00:00:00 2001 From: Tobias Gunkel Date: Wed, 21 Dec 2011 10:12:47 +0100 Subject: [PATCH] SCUMM: Remove player_appleII logging --- engines/scumm/player_appleII.cpp | 24 ------------------------ engines/scumm/player_appleII.h | 14 -------------- 2 files changed, 38 deletions(-) diff --git a/engines/scumm/player_appleII.cpp b/engines/scumm/player_appleII.cpp index b566012d73d..0631bcd055d 100644 --- a/engines/scumm/player_appleII.cpp +++ b/engines/scumm/player_appleII.cpp @@ -372,30 +372,6 @@ Player_AppleII::~Player_AppleII() { delete _state.soundFunc; } -/* -void logSounds() { - for (nr = 1; nr < 70; ++nr) { - switch (nr) { - // non-existing or invalid - case 3: case 4: case 5: case 49: case 51: case 68: - continue; - } - - byte *data = _vm->getResourceAddress(rtSound, nr); - if (data) { - size_t size = (data[1] << 8) | data[0]; - - std::stringstream s; - s << "d:/msound/sound" << nr << ".snd"; - FILE *f = fopen(s.str().c_str(), "wb"); - fwrite(data, 1, size, f); - fclose(f); - printf("sound: %d\n", nr); - } - } -} -*/ - void Player_AppleII::startSound(int nr) { Common::StackLock lock(_mutex); diff --git a/engines/scumm/player_appleII.h b/engines/scumm/player_appleII.h index 1f53b6a8dc5..a44e7b6afe0 100644 --- a/engines/scumm/player_appleII.h +++ b/engines/scumm/player_appleII.h @@ -207,20 +207,6 @@ public: return _buffer.read((byte*)buffer, numSamples * 2) / 2; } -#if 0 - void logToFile(Common::String fileName) { - FILE *f; - byte buffer[512]; - int n; - - f = fopen(fileName.c_str(), "wb"); - while ((n = _buffer.read(buffer, 512)) != 0) { - fwrite(buffer, 1, n, f); - } - fclose(f); - } -#endif - private: static const int PREC_SHIFT = 7;