mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 06:40:42 -07:00
linux, audio: add hooks acmFormatSuggest (#455)
## Link to GitHub Issue, if one exists n/a ## Description of change `acmFormatSuggest` is known to cause significant perf issues on Linux; add a hook to return cached results. The fix is only active in the Linux variant. For discussion, see * https://codeberg.org/nixac/spicetools/issues/2 * https://codeberg.org/nixac/spicetools/issues/4 ## Testing I've only tested this on Windows, checking if iidx and popn can boot, play songs without audio issues.
This commit is contained in:
@@ -235,6 +235,9 @@ namespace games::iidx {
|
||||
} else if (data.find(" W:touch: missing trigger:") != std::string::npos) {
|
||||
out.clear();
|
||||
return true;
|
||||
} else if (data.find(" W:CTexture: no such texture: id 0") != std::string::npos) {
|
||||
out.clear();
|
||||
return true;
|
||||
} else if (data.find("SuperstepSound: Audio device is not available") != std::string::npos) {
|
||||
deferredlogs::defer_error_messages(deferredlogs::SUPERSTEP_SOUND_ERROR_MESSAGE);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user