ENH improve sound latency
This commit is contained in:
parent
4f14e11ae5
commit
0e635263e9
|
@ -30,7 +30,8 @@ soundDir = "sound"
|
||||||
spawnSound :: FilePath -> X ()
|
spawnSound :: FilePath -> X ()
|
||||||
spawnSound file = do
|
spawnSound file = do
|
||||||
path <- (</> soundDir </> file) <$> getXMonadDir
|
path <- (</> soundDir </> file) <$> getXMonadDir
|
||||||
spawnCmd "aplay" [path]
|
-- paplay seems to have less latency than aplay
|
||||||
|
spawnCmd "paplay" [path]
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
-- | Formatting commands
|
-- | Formatting commands
|
||||||
|
|
Loading…
Reference in New Issue