alsa-0.4: Binding to the ALSA Library API.

Stabilityprovisional
MaintainerIavor S. Diatchki

Sound.Alsa.Sequencer.Port

Description

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

Synopsis

Documentation

data PortCap Source

Port capabilities.

Instances

data PortType Source

Port types.

Instances

create_port :: SndSeq -> PortInfo -> IO ()Source

Create a new port, as described by the info structure.

create_simple_port :: SndSeq -> String -> PortCap -> PortType -> IO PortSource

Create a port - simple version.

delete_port :: SndSeq -> Port -> IO ()Source

Delete the port.

get_port_info :: SndSeq -> Port -> IO PortInfoSource

Create a new information area filled with data about a specific port on our client.

get_any_port_info :: SndSeq -> Client -> Port -> IO PortInfoSource

Create a new information area filled with data about an given port on a given client.

query_first_port :: SndSeq -> IO PortInfoSource

Get information about the first port on our client.

query_next_port :: SndSeq -> PortInfo -> IO ()Source

Get information about the port with the next biggest identifier. If a matching port is found, then its information is stored in the given area, otherwise we throw an error.

set_port_info :: SndSeq -> Port -> PortInfo -> IO ()Source

Set the information for the sequencer port based on the data in the given information area.

port_info_copySource

Arguments

:: PortInfo

Destination

-> PortInfo

Source

-> IO () 

port_info_get_addr :: PortInfo -> IO AddrSource

Get the address of the information area.

port_info_set_addr :: PortInfo -> Addr -> IO ()Source

Set the port address.