Stability | provisional |
---|---|
Maintainer | Iavor S. Diatchki |
This module contains functions for working with ports. Reference: http://www.alsa-project.org/alsa-doc/alsa-lib/group___seq_port.html
- data Port
- port_system_timer :: Port
- port_system_announce :: Port
- port_unknown :: Port
- data PortCap
- cap_read :: PortCap
- cap_write :: PortCap
- cap_sync_read :: PortCap
- cap_sync_write :: PortCap
- cap_duplex :: PortCap
- cap_subs_read :: PortCap
- cap_subs_write :: PortCap
- cap_no_export :: PortCap
- caps :: [PortCap] -> PortCap
- data PortType
- type_specific :: PortType
- type_midi_generic :: PortType
- type_midi_gm :: PortType
- type_midi_gs :: PortType
- type_midi_xg :: PortType
- type_midi_mt32 :: PortType
- type_midi_gm2 :: PortType
- type_synth :: PortType
- type_direct_sample :: PortType
- type_sample :: PortType
- type_hardware :: PortType
- type_software :: PortType
- type_synthesizer :: PortType
- type_port :: PortType
- type_application :: PortType
- types :: [PortType] -> PortType
- data PortInfo
- create_port :: SndSeq -> PortInfo -> IO ()
- create_simple_port :: SndSeq -> String -> PortCap -> PortType -> IO Port
- delete_port :: SndSeq -> Port -> IO ()
- get_port_info :: SndSeq -> Port -> IO PortInfo
- get_any_port_info :: SndSeq -> Client -> Port -> IO PortInfo
- query_first_port :: SndSeq -> IO PortInfo
- query_next_port :: SndSeq -> PortInfo -> IO ()
- set_port_info :: SndSeq -> Port -> PortInfo -> IO ()
- port_info_copy :: PortInfo -> PortInfo -> IO ()
- port_info_clone :: PortInfo -> IO PortInfo
- port_info_get_port :: PortInfo -> IO Port
- port_info_get_client :: PortInfo -> IO Client
- port_info_get_addr :: PortInfo -> IO Addr
- port_info_get_name :: PortInfo -> IO String
- port_info_get_capability :: PortInfo -> IO PortCap
- port_info_get_midi_channels :: PortInfo -> IO Word
- port_info_get_midi_voices :: PortInfo -> IO Word
- port_info_get_synth_voices :: PortInfo -> IO Word
- port_info_get_port_specified :: PortInfo -> IO Bool
- port_info_get_timestamping :: PortInfo -> IO Bool
- port_info_get_timestamp_real :: PortInfo -> IO Bool
- port_info_get_timestamp_queue :: PortInfo -> IO Queue
- port_info_get_read_use :: PortInfo -> IO Word
- port_info_get_write_use :: PortInfo -> IO Word
- port_info_set_port :: PortInfo -> Port -> IO ()
- port_info_set_client :: PortInfo -> Client -> IO ()
- port_info_set_addr :: PortInfo -> Addr -> IO ()
- port_info_set_name :: PortInfo -> String -> IO ()
- port_info_set_capability :: PortInfo -> PortCap -> IO ()
- port_info_set_midi_channels :: PortInfo -> Word -> IO ()
- port_info_set_synth_voices :: PortInfo -> Word -> IO ()
- port_info_set_midi_voices :: PortInfo -> Word -> IO ()
- port_info_set_port_specified :: PortInfo -> Bool -> IO ()
- port_info_set_timestamping :: PortInfo -> Bool -> IO ()
- port_info_set_timestamp_real :: PortInfo -> Bool -> IO ()
- port_info_set_timestamp_queue :: PortInfo -> Queue -> IO ()
Documentation
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.
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_get_addr :: PortInfo -> IO AddrSource
Get the address of the information area.