9 import Control.Concurrent.MVar
14 import Sound.JACK ( NFrames
17 -- | MVar containing all the events given by the input port.
18 inRef :: IO (MVar EventQueue)
21 -- | MVar containing all the events to be given to the output port.
22 outRef :: IO (MVar EventQueue)
23 outRef = newMVar empty
25 -- | MVar containing the state of the machine (JACK client and ports).
26 clientRef :: Int -> NFrames -> NFrames -> IO (MVar ClientState)
27 clientRef rate outSize inSize = newMVar $ ClientState { rate = rate