K0lb3 / UnityPy

UnityPy is python module that makes it possible to extract/unpack and edit Unity assets
MIT License
761 stars 113 forks source link

AudioClip can not be exported. What does the FmodError : MEMORY mean?? #220

Closed sai4311b closed 6 months ago

sai4311b commented 6 months ago

Code

import UnityPy file_path = '/content/se-mp3.bin' env = UnityPy.load(file_path) data = env.objects[1].read() extractor.exportAudioClip(data,'test.wav')

Error example

Bug A description of what you expect to happen/see and what actually happens.

Please help me solve the problem. I wnat to export the audioclip from the sample asset file below but it shows FmodError: MEMORY and I have no idea to solve it.

To Reproduce

K0lb3 commented 6 months ago

The audio data within the AudioClip of your sample doesn't seem to be encoded correctly. The asset describes it as compressed, but it's actually not. Instead the data is an m4a and can be used without any post processing.

K0lb3 commented 6 months ago

To be specific, it's actually a problem of fmod itself. It doesn't seem to ship a m4a decoder in it's studio library for normal computer use.