Allow for more sounds to be playing at once
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user