From 4321c59d8431eaf72d7b36c047859b72bca02318 Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Thu, 12 May 2022 15:44:15 +0200 Subject: Added implementation of Srarctaft I BETA ADPCM decompression --- test/StormTest.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/StormTest.cpp b/test/StormTest.cpp index 128cd6b..2e7389b 100644 --- a/test/StormTest.cpp +++ b/test/StormTest.cpp @@ -2559,6 +2559,17 @@ static DWORD TestArchive( if(dwCrc32 != pFileData->dwCrc32) Logger.PrintError("Warning: CRC32 error on %s", szFileName); } + +#ifdef _DEBUG +/* + FILE * fp = fopen("e:\\out_file.wav", "wb"); + if(fp) + { + fwrite(pFileData->FileData, 1, pFileData->dwFileSize, fp); + fclose(fp); + } +*/ +#endif } } @@ -4331,7 +4342,8 @@ int _tmain(int argc, TCHAR * argv[]) for(int i = 2; i < argc; i++) { - TestArchive(argv[i], Bliz, 0, "staredit\\scenario.chk", NULL); +// TestArchive(argv[i], Bliz, 0, "sound\\zerg\\advisor\\zaderr05.wav", NULL); + TestArchive(argv[i], Bliz, 0, "music\\trdyroom.wav", NULL); } // -- cgit v1.2.3