-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
audio manager #34
Comments
I would certainly welcome such a change, but I don't have any time to reimplement it myself. I don't think anyone else on our dev team has time either. It's actually not hard to extract audio from the new files either. There's some very simple XOR encryption, but other than that it's just compressed with ATRAC3. The FFMPEG library includes an ATRAC3 decoder, so once the XOR encryption is removed you could just pipe it through FFMPEG to get standard LPCM samples for playback or extraction. The XOR encryption is pretty easy to break because as far as I can tell every single ATRAC3 encoded file in the game starts with a single block of silence. A silent block is made up of the bytes |
If this issue can serve as a future wish list item that'd be good then. Maybe we'll get lucky and some random person browsing github will see it and tackle it someday. IIRC Pebbles wanted to move to [SharpDX ]'s nuGet package (https://github.com/sharpdx/SharpDX) for audio processing. Not sure I like that idea myself.
Huh. wasn't aware anybody was able to decrypt the atrac3 ones thought we needed keys for that and the format was so obscure I didn't think anybody would ever care enough to have support in ..well anything. |
I actually figured out how to decrypt them back around ToAU, took me a few days to figure it out. However, once I did, it wasn't much use because converting the raw ATRAC3 data stream to LPCM at the time was a pain in the ass and required jumping through several hoops using proprietary Sony DirectShow filters and other Sony software that was almost impossible to find. Since then FFMPEG has gained an ATRAC3 decoder so it should be much easier to get working now. |
For anyone who decides to take this on, there is one more thing to keep in mind about the ATRAC3 compressed files. ATRAC3 only supports a 44.1 kHz sample rate, but SE decided to use a 48 kHz sample rate for some files anyway. To do that they ignored the issue, pretended the raw samples were recorded at 44.1 kHz, and then just sped everything up to 48 kHz during playback. |
Yes I know we can't decode the newer audio files. butif we could get rid of that BS about managed directx, that'd be great. MDX was discontinued forever ago and the audio manager part of polutils is still good for identifying sound effects in addition to older music tracks.The text was updated successfully, but these errors were encountered: