mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-13 21:20:58 +00:00
SCUMM: Remove player_appleII logging
This commit is contained in:
parent
f7a869ccc5
commit
12103981b7
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user