SCUMM: Remove player_appleII logging

This commit is contained in:
Tobias Gunkel 2011-12-21 10:12:47 +01:00
parent f7a869ccc5
commit 12103981b7
2 changed files with 0 additions and 38 deletions

View File

@ -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);

View File

@ -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;