~cypheon/pkgsrc-wip

pkgsrc-wip/bstone/patches/patch-src_id__sd.cpp -rw-r--r-- 713 bytes
5f1bf4f5 — Johann Rudloff Subst PLIST paths for platform specific files for other architectures 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD$

Prefer the SDL driver, since the openal driver may crash the game
(issue needs investigating).

--- src/id_sd.cpp.orig	2021-02-14 11:47:46.000000000 +0000
+++ src/id_sd.cpp
@@ -337,11 +337,11 @@ void sd_startup()
 
 			case AudioDriverType::auto_detect:
 			default:
-				if (sd_initialize_driver(AudioDriverType::r3_openal, snd_rate, snd_mix_size))
+				if (sd_initialize_driver(AudioDriverType::r2_sdl, snd_rate, snd_mix_size))
 				{
 					is_driver_initialized = true;
 				}
-				else if (sd_initialize_driver(AudioDriverType::r2_sdl, snd_rate, snd_mix_size))
+				else if (sd_initialize_driver(AudioDriverType::r3_openal, snd_rate, snd_mix_size))
 				{
 					is_driver_initialized = true;
 				}