Closed sai4311b closed 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.
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.
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](https://github.com/K0lb3/UnityPy/assets/154989876/8ee23944-9979-443a-8d41-8ee9a44f8164)
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
a copy of the file that causes the problem https://drive.google.com/file/d/13hYHiqDIICtbbBETPTxz7jMRgyMSjTiN/view?usp=drive_link
following data: