
1 Feb
2013
1 Feb
'13
3:57 p.m.
On Wednesday, 30. January 2013 23:51:03 David McBride wrote:
Then the answer depends on how you are going about playing midi.
1. Is the api call for this playMidiFile :: FilePath -> IO (), where it waits until the file finishes before it returns? You may have to spawn a thread (forkIO) before you play, save it's threadId in some sort of state and then attempt to kill it from the input thread when the time comes.
Yes, my player is a function from Something to IO(), so forkIO is what I was looking for. -- Martin