mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-25 07:20:10 +01:00
Less debug
This commit is contained in:
parent
686d77debc
commit
bc4f7e9b5f
@ -25,7 +25,6 @@ VGMSTREAM * init_vgmstream_ngc_pdt(STREAMFILE *streamFile) {
|
||||
read_32bitBE(0x0c,streamFile) != 0x04)
|
||||
goto fail;
|
||||
|
||||
//VGM_LOG("1\n");
|
||||
entries = read_16bitBE(0x02,streamFile);
|
||||
entries_offset = read_32bitBE(0x10,streamFile);
|
||||
coefs_offset = read_32bitBE(0x14,streamFile);
|
||||
@ -74,7 +73,6 @@ VGMSTREAM * init_vgmstream_ngc_pdt(STREAMFILE *streamFile) {
|
||||
}
|
||||
}
|
||||
|
||||
//VGM_LOG("header: %lx\n", header_offset);//todo
|
||||
/* parse header */
|
||||
{
|
||||
uint8_t flags;
|
||||
|
@ -119,7 +119,7 @@ VGMSTREAM * init_vgmstream_p3d(STREAMFILE *streamFile) {
|
||||
break;
|
||||
|
||||
default:
|
||||
VGM_LOG("unknown codec 0x%04x\n", codec);
|
||||
VGM_LOG("P3D: unknown codec 0x%04x\n", codec);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
@ -175,7 +175,7 @@ VGMSTREAM * init_vgmstream_p3d(STREAMFILE *streamFile) {
|
||||
#endif
|
||||
|
||||
default:
|
||||
VGM_LOG("unknown codec 0x%04x\n", codec);
|
||||
VGM_LOG("P3D: unknown codec 0x%04x\n", codec);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,7 @@ VGMSTREAM * init_vgmstream_ppst(STREAMFILE *streamFile) {
|
||||
total_subsongs++;
|
||||
offset += 0x08;
|
||||
}
|
||||
VGM_LOG("st=%lx\n", total_subsongs);
|
||||
|
||||
if (target_subsong == 0) target_subsong = 1;
|
||||
if (target_subsong < 0 || target_subsong > total_subsongs || total_subsongs < 1) goto fail;
|
||||
}
|
||||
|
@ -70,7 +70,6 @@ static size_t jstm_decryption_read(STREAMFILE *streamfile, uint8_t *dest, off_t
|
||||
/* decrypt data (xor) */
|
||||
for (i = 0; i < bytes_read; i++) {
|
||||
if (offset+i >= data->start_offset) {
|
||||
//VGM_LOG("xor %x to %x\n", dest[i], dest[i] ^ 0x5A);getchar();
|
||||
dest[i] = dest[i] ^ 0x5A;
|
||||
}
|
||||
}
|
||||
|
@ -44,9 +44,6 @@ VGMSTREAM * init_vgmstream_sps_n1(STREAMFILE *streamFile) {
|
||||
goto fail;
|
||||
}
|
||||
|
||||
//VGM_LOG(vgmstream->num_samples != num_samples,
|
||||
// "SPS: sps num_samples and subfile num_samples don't match\n");
|
||||
//vgmstream->num_samples = num_samples; //todo adjusted for MAIATRAC3
|
||||
vgmstream->sample_rate = sample_rate; /* .vag header doesn't match */
|
||||
|
||||
close_streamfile(temp_streamFile);
|
||||
|
Loading…
Reference in New Issue
Block a user