diff options
-rw-r--r-- | midi-dump.hs | 24 |
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 | |||
20 | import Data.ByteString.Char8 (pack) | 20 | import Data.ByteString.Char8 (pack) |
21 | 21 | ||
22 | import Control.Concurrent.Chan | 22 | import Control.Concurrent.Chan |
23 | import Prelude hiding ((.)) | 23 | import Prelude hiding ((.), id) |
24 | import BasePrelude hiding (loop) | 24 | import BasePrelude hiding (loop) |
25 | 25 | ||
26 | import qualified Sound.ALSA.Sequencer.Address | ||
27 | import qualified Sound.ALSA.Sequencer.Port | ||
28 | import qualified Sound.ALSA.Sequencer.Queue | ||
29 | import qualified Sound.ALSA.Sequencer | ||
30 | |||
31 | |||
26 | verbose = False | 32 | verbose = False |
27 | 33 | ||
28 | main = main' `AlsaExc.catch` handler | 34 | main = main' `AlsaExc.catch` handler |
@@ -45,16 +51,16 @@ data LoopState = LoopState { | |||
45 | } | 51 | } |
46 | 52 | ||
47 | data LoopEnv = LoopEnv { | 53 | data 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 | ||
60 | getAbsTime = do | 66 | getAbsTime = do |