Pobega / com.fightcade.Fightcade-ARCHIVE

ARCHIVED - go to flathub/com.fightcade.Fightcade
https://github.com/flathub/com.fightcade.Fightcade
GNU General Public License v2.0
2 stars 0 forks source link

Fix sound in sandboxed wine #21

Closed Pobega closed 4 years ago

Pobega commented 4 years ago

Currently the emulators all default to XAudio2, but 32-bit FAudio can't build with;

checking for F3DAudioInitialize8... no
configure: error: libFAudio 32-bit development files not found, XAudio2 won't be supported.
This is an error since --with-faudio was requested.

Alternatively to fixing this, the emulators could possibly be configured to default to DirectSound (which works) by editing their config files at in apply_extra

Pobega commented 4 years ago

It seems like the correct ini config in the emulator is nAudSelect 0 to get it to default to DirectSound

Pobega commented 4 years ago

It seems like nAudSelect 0 is already the default for the default config, so I guess just putting the config in place should be enough? It seems that way from my testing...

Pobega commented 4 years ago

Added a temporary workaround in https://github.com/Pobega/com.fightcade.Fightcade/commit/bf9431d260227072f862b186b36031262f123d25

Pobega commented 4 years ago

I haven't been able to find a good way to build Wine32 with XAudio support, but DirectAudio works fine.

Pobega commented 4 years ago

For future reference it looks like Valve builds Faudio:

So it's entirely possible we can build FAudio ourselves as a dependency of Wine if it's decided we need XAudio support in the future.