I am attempting to integrate FMOD Studio API with Python on a Windows 64-bit system for an audio project. Here’s a summary of the steps I’ve taken and the issue I’m facing:
- Installation of FMOD Studio API: I installed FMOD Studio 2.02.17, and the installation was successful.
- Python Integration: I’m using Python 3.11.2 (64-bit) and have installed the
pyfmodex
library to interact with FMOD. - DLL Location: I found the
fmod.dll
file in the directoryC:\Program Files (x86)\FMOD SoundSystem\FMOD Studio API Windows\api\core\examples\bin
. I also noticed a mention of the DLLs being inAssets/Plugins/FMOD/lib
, but I’m unsure if this is relevant to my setup. - Python Script Execution: When attempting to run a Python script that imports FMOD, I receive the following error:
OSError: [WinError 193] %1 is not a valid Win32 application
This error seems to indicate an issue with loading the fmod.dll
.
5. Architecture Mismatch Suspected: I suspect there might be a mismatch between the 32-bit and 64-bit versions of the DLL and the Python interpreter, but I’m not certain how to resolve this.
6. Attempts to Resolve: I’ve tried various paths and methods to load the DLL, including using both the command line and IDLE Shell, but the issue persists.
I’m looking for guidance on how to correctly locate and load the appropriate FMOD DLL for use with Python. Any insights or suggestions on how to resolve this issue would be greatly appreciated. Thank you!