I haven’t found a solution to fix PulseAudio support in the Docker image yet.
For anyone else who has this issue, the solution I ended up going with is to prevent FMOD from setting the output type to PulseAudio when running the Unity editor in the test environment.
Fixing the output type proved challening, as the PreInitialize hook runs too late to prevent the error. In the end, I used sed
to modify RuntimeManager.cs
as part of the GitHub workflow.
# PulseAudio does not work in Docker container
- name: Patch FMOD to disable sound
run: |
sed -i'' \
's/result = coreSystem.setOutput(outputType);/result = coreSystem.setOutput(FMOD.OUTPUTTYPE.NOSOUND);/' \
Assets/Plugins/FMOD/src/RuntimeManager.cs