No sound on MacOS

Hello!
A user has a problem with my Unity game on his MacOS.
Obviously, the game works perfectly fine here on Windows.
Unity version is 2018.4.36f1.
He also tried to install Windows 11 on Parallels virtual machine with the same result.
His specs:

Model Name: MacBook Pro
Model identifier: Mac 14,7
Chip: Apple M2
Total Number of Cores: 8 (4 performance and 4 efficiency)
Memory: 16 GB
System Firmware Version: 10151.121.1
OS Loader Version: 10151.121.1
OS version : Sonoma 14.5

Windows specs:

Processor : Apple silicon 3.20GHz 6 processors
RAM : 10 GB
System type : 64-bit operating system, ARM-based processor
Edition : Windows 11 Pro
Version : 23H2
Experience : Windows Feature Experience Pack 1000.22700.1020.0
OS build : 22631.3880

The output log has this line:

FMOD failed to initialize any audio devices, running on emulated software output with no sound. Please check your audio drivers and/or hardware for malfunction.

And after that the game fails to retrieve music files from resources:

IndexOutOfRangeException: Array index is out of range.
at Controls.OnEnable () [0x00000] in :0

The code is:

foreach (AudioClip a in Resources.LoadAll<AudioClip>("Music"))
	songs.Add(a);

And, of course, the user has no sound in the game.
After some searching, I found this.

After the user has removed all the files from the named folder, the FMOD error line is gone from the output log, but the other errors remained, and he still has no sound.
He said he had some other audio drivers, but he removed them as well.
He also tried to update his drivers after that with no avail.

I would upload the logs, but I can’t as a new user.

Hi,

Thank you for sharing the information and log.

What FMOD Unity integration version are you using? Is this a released project?

Could I grab some information about your current setup? From the code you provided, it seems like you might be using both the FMOD system and Unity’s built-in system, which might be causing the issue with initializing FMOD. If that’s the case, would it be possible to disable the built in audio to see if the issue persists?

It is just Unity (2018.4.36f1), I didn’t install FMOD on it. In fact, I didn’t even know it uses FMOD until the problem appeared.
It is a released project.

I see, thank you for providing the information.

Unfortunately, this is an error from Unity. They are using the old FMOD Core API and have not changed the class names.

I’m sorry we can’t assist any further.

For more information, you could have a look at a post here: Is Unity's built-in audio engine FMOD Studio (FMOD 5)? - #4 by mathew

1 Like