summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--midi-dump.hs24
1 files changed, 15 insertions, 9 deletions
diff --git a/midi-dump.hs b/midi-dump.hs
index 0ed7ecb..ad9fd46 100644
--- a/midi-dump.hs
+++ b/midi-dump.hs
@@ -20,9 +20,15 @@ import Data.Int
20import Data.ByteString.Char8 (pack) 20import Data.ByteString.Char8 (pack)
21 21
22import Control.Concurrent.Chan 22import Control.Concurrent.Chan
23import Prelude hiding ((.)) 23import Prelude hiding ((.), id)
24import BasePrelude hiding (loop) 24import BasePrelude hiding (loop)
25 25
26import qualified Sound.ALSA.Sequencer.Address
27import qualified Sound.ALSA.Sequencer.Port
28import qualified Sound.ALSA.Sequencer.Queue
29import qualified Sound.ALSA.Sequencer
30
31
26verbose = False 32verbose = False
27 33
28main = main' `AlsaExc.catch` handler 34main = main' `AlsaExc.catch` handler
@@ -45,16 +51,16 @@ data LoopState = LoopState {
45} 51}
46 52
47data LoopEnv = LoopEnv { 53data LoopEnv = LoopEnv {
48 saver :: _, 54 saver :: Chan (Int64, Int64, [EVENT]),
49 sqlite :: _, 55 sqlite :: Connection,
50 startTime :: TimeSpec, 56 startTime :: TimeSpec,
51 startTimeReal :: TimeSpec, 57 startTimeReal :: TimeSpec,
52 h :: _, 58 h :: Sound.ALSA.Sequencer.T Sound.ALSA.Sequencer.DuplexMode,
53 public :: _, 59 public :: Sound.ALSA.Sequencer.Port.T,
54 private :: _, 60 private :: Sound.ALSA.Sequencer.Port.T,
55 q :: _, 61 q :: Sound.ALSA.Sequencer.Queue.T,
56 publicAddr :: _, 62 publicAddr :: Sound.ALSA.Sequencer.Address.T,
57 privateAddr :: _ 63 privateAddr :: Sound.ALSA.Sequencer.Address.T
58} 64}
59 65
60getAbsTime = do 66getAbsTime = do