Harry Potter and the Chamber of Secrets (PS2) *.MUS

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Harry Potter and the Chamber of Secrets (PS2) *.MUS

Post by Mygoshi »

Hello,

It might sounds weird but I'm wondering why Awave Studio can actually play the .mus music files of this game but with regular silences throughout the music.

https://mega.co.nz/#!ZVwnGbKC!ijHsbKX29 ... YaFfxYOwNY

The .mus archives contain .asf segments but I thought it would join them smoothly...

Is there a way to do this?

Thanks!
Last edited by Mygoshi on Thu Feb 18, 2021 9:59 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Harry Potter and the Chamber of Secrets (PS2) *.MUS

Post by aluigi »

Probably was better to upload the MUS archive.
Do you know if that archive contains also information about the stored files?
Or it just a raw archive (like happens with some dat archives on playstation)?
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Harry Potter and the Chamber of Secrets (PS2) *.MUS

Post by Mygoshi »

Archive (diagon.mus) extracted directly from the CD: https://mega.co.nz/#!YIpjQSyI!m3LZCNOrr ... sDC7ePKJgU
The .mus files are attached with a .mpf file. The header of the .mpf file is "xDFP".
Diagon.mpf download: https://mega.co.nz/#!sJYwxbJC!9TW2Zl_Xa ... 0DetOAMaF8
The .mus file contains .asf (Electronic Arts Audio format) files. I extracted them with the Sound eXchange (sx.bat, sx.exe) by Dave Mercier.
The problem is that it is difficult to joins the files without noises between..
To extract the diagon.mus, I needed to download the SCHL Mus Extractor on Xentax, to extract the .asf in the .mus file. And then, convert the .asf into .wav with Sound eXchange. The header of the .mus files begins with "SCHl PT" there are some information about these headers on the Internet.
Last edited by Mygoshi on Thu Feb 18, 2021 9:59 pm, edited 2 times in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Harry Potter and the Chamber of Secrets (PS2) *.MUS

Post by aluigi »

They are not just mp3 stored in an archive, it seems like they are single frames.
I tried to write a script but the result is not much playable, I simple concatenated all the frames.

Code: Select all

math FILE_NUM = 0
get MUS_SIZE asize
for OFFSET = 0 < MUS_SIZE
    goto OFFSET
    getdstring TYPE 4
    get SIZE long
    savepos OFFSET
    math SIZE -= 8
    if TYPE == "SCHl"
        log MEMORY_FILE 0 0
        math FRAME = 0

    elif TYPE == "SCEl"
        get SIZE asize MEMORY_FILE
        string NAME p= "%s.mp3" FILE_NUM
        log NAME 0 SIZE MEMORY_FILE
        math FILE_NUM += 1
        padding 0x80
        savepos OFFSET
        math SIZE = 0

    elif TYPE == "SCDl"
        math OFFSET += 0xc
        math SIZE -= 0xc
        append
        log MEMORY_FILE OFFSET SIZE
        append
        math FRAME += 1
    endif
    math OFFSET += SIZE
next
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Harry Potter and the Chamber of Secrets (PS2) *.MUS

Post by Mygoshi »

Thanks. I tried to convert the 192.MP3 with BRSTM Converter into .wav but this is not the real speed... There is a problem with the speed
https://mega.co.nz/#!och1WbjC!dfZjIl22b ... yq-CuTFBqM

Edit: It works fine with Awave Studio.