alsa-seq-0.6: Binding to the ALSA Library API (MIDI sequencer).

Stabilityprovisional
MaintainerHenning Thielemann
Safe HaskellNone

Sound.ALSA.Sequencer.Queue

Contents

Description

This module contains functions for working with sequencer queue. Reference: http://www.alsa-project.org/alsa-doc/alsa-lib/group___seq_queue.html

Synopsis

General Queue Functions

data T Source

The type of queue identifiers.

Instances

allocSource

Arguments

:: T mode 
-> IO T

Queue.T identifier.

allocNamed :: T mode -> String -> IO TSource

freeSource

Arguments

:: T mode

Sequencer handle.

-> T

Queue.T identifier.

-> IO () 

Delete the specified queue.

with :: T mode -> (T -> IO a) -> IO aSource

withNamed :: T mode -> String -> (T -> IO a) -> IO aSource

controlSource

Arguments

:: T mode

Sequencer handle.

-> T

target Queue.T.

-> QueueEv 
-> Maybe T

prototype event that may provide timestamp, source queue

-> IO () 

startstopcontinue a queue

In the prototype event you can provide additional information. The prototype event does not need to be a queue control event, this part is ignored anyway. In the prototype event you may also specify a queue. This is the queue that the timestamp of the prototype event refers to. This way you can control the target queue using timing from another queue.