Allow for more sounds to be playing at once

This commit is contained in:
2025-09-01 20:12:50 +01:00
parent 85591424fd
commit 89c9337822
3 changed files with 3 additions and 7 deletions
+1 -5
View File
@@ -1,10 +1,6 @@
{ {
"_debug_booleans": [ "_debug_booleans": [
"Show_ms_frame", "Show_ms_frame"
"Enable_debug",
"Cr_status",
"Show_walls_near_point_you",
"Show_zone_circ"
], ],
"_debug_view_clip_bounds": "NoRoomClipBoundaries", "_debug_view_clip_bounds": "NoRoomClipBoundaries",
"_gameplay_rotate_to_wall": true, "_gameplay_rotate_to_wall": true,
+1 -1
View File
@@ -444,7 +444,7 @@ applySoundCME itm cr = fromMaybe id $ do
return $ return $
if x > 0 if x > 0
then soundContinue (CrWeaponSound cid 0) (_crPos cr) soundid (Just x) then soundContinue (CrWeaponSound cid 0) (_crPos cr) soundid (Just x)
else soundMultiFrom [CrWeaponSound cid j | j <- [0 .. 5]] (_crPos cr) soundid Nothing else soundMultiFrom [CrWeaponSound cid j | j <- [0 .. 16]] (_crPos cr) soundid Nothing
where where
cid = _crID cr cid = _crID cr
+1 -1
View File
@@ -25,7 +25,7 @@ loadSounds = do
putStrLn $ show y <> " channels assigned to group 1" putStrLn $ show y <> " channels assigned to group 1"
fmap IM.fromList $ mapM loadSound $ zip [0..] soundPathList fmap IM.fromList $ mapM loadSound $ zip [0..] soundPathList
where where
nchans = 64::Int nchans = 128::Int
loadMusic :: IO (IM.IntMap Mix.Music) loadMusic :: IO (IM.IntMap Mix.Music)
loadMusic = do loadMusic = do