Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype BufferId = BufferId {
- _unBufferId :: Int32
- newtype NodeId = NodeId {}
- newtype SyncId = SyncId {}
- scServerState :: SCServerState
- data SCServerState = SCServerState {
- _scServerState_socketConnectStarted :: TVar Bool
- _scServerState_socket :: !(TMVar Socket)
- _scServerState_listener :: !(TMVar ThreadId)
- _scServerState_availableBufferIds :: !(TVar [BufferId])
- _scServerState_maxBufIds :: !(TVar Int32)
- _scServerState_availableNodeIds :: !(TVar [NodeId])
- _scServerState_availableSyncIds :: !(TVar [SyncId])
- _scServerState_syncIdMailboxes :: !(TVar (Map SyncId (MVar ())))
- _scServerState_serverMessageFunction :: !(TVar (OSC -> IO ()))
- _scServerState_definedSDs :: !(TVar (Set (SDName, Int)))
- setClientId :: Int32 -> IO ()
- setMaxBufferIds :: Int32 -> IO ()
- getNextAvailable :: (SCServerState -> TVar [a]) -> IO a
- numberOfSyncIdsToDrop :: Int
Documentation
data SCServerState Source #
SCServerState | |
|
setClientId :: Int32 -> IO () Source #
setMaxBufferIds :: Int32 -> IO () Source #
If you've started the SC server with a non-default number of buffer ids, (e.g. with the "-b" argument), you can reflect that here
Note that the buffer ids start at 512, to not clash with any that another client (e.g. sclang) has allocated
getNextAvailable :: (SCServerState -> TVar [a]) -> IO a Source #