Safe Haskell | None |
---|---|
Language | Haskell2010 |
Maintianer : ongy Stability : experimental
- data SinkFlags
- data SinkState
- data Sinkinfo = Sinkinfo {
- siName :: String
- siIndex :: Word32
- siDescription :: String
- siSampleSpec :: SampleSpec
- siChannelMap :: ChannelMap
- siOwnerModule :: Word32
- siVolume :: CVolume
- siMute :: Bool
- siMonitorSource :: Word32
- siMonitorSourceName :: String
- siLatency :: Word
- siDriver :: String
- siFlags :: [SinkFlags]
- siProplist :: Ptr PropList
- siConfiguredLatency :: Word
- siBaseVolume :: Volume
- siState :: SinkState
- siVolumeSteps :: Word32
- siCard :: Word32
- siPorts :: [Ptr SinkPortInfo]
- siActivePort :: Ptr SinkPortInfo
- siFormats :: [Ptr FormatInfo]
- getContextSinks :: Context -> (Sinkinfo -> IO ()) -> IO () -> IO Operation
- getContextSinkByName :: Context -> String -> (Sinkinfo -> IO ()) -> IO Operation
- getContextSinkByIndex :: Context -> Word32 -> (Sinkinfo -> IO ()) -> IO Operation
- getContextSinksM :: Pulse [Sinkinfo]
- getContextSinkByNameM :: String -> Pulse Sinkinfo
- getContextSinkByIndexM :: Word32 -> Pulse Sinkinfo
Documentation
Type used for pa_sink_info
Sinkinfo | |
|
:: Context | The context |
-> (Sinkinfo -> IO ()) | List callback. Will be called once per list entry |
-> IO () | End callback. Will be called once after all list entries |
-> IO Operation |
Get all sinks from a context.
getContextSinkByName :: Context -> String -> (Sinkinfo -> IO ()) -> IO Operation Source #
Get a sink by name
getContextSinkByIndex :: Context -> Word32 -> (Sinkinfo -> IO ()) -> IO Operation Source #
Get a sink by index
getContextSinksM :: Pulse [Sinkinfo] Source #