packages feed

netclock 0.3 → 0.4

raw patch · 2 files changed

+5/−3 lines, 2 filesdep ~hoscPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: hosc

API changes (from Hackage documentation)

- Network.Netclock.Client: bpsListenLoop :: Transport t => MVar (BpsChange, [BpsChange]) -> t -> IO b
+ Network.Netclock.Client: bpsListenLoop :: MVar (BpsChange, [BpsChange]) -> UDP -> IO b
- Network.Netclock.Client: readChange :: Transport t => t -> IO BpsChange
+ Network.Netclock.Client: readChange :: UDP -> IO (BpsChange)

Files

Network/Netclock/Client.hs view
@@ -1,5 +1,6 @@ module Network.Netclock.Client where +import Sound.OSC.FD import Sound.OpenSoundControl import Control.Concurrent (threadDelay, forkIO) import Control.Concurrent.MVar@@ -120,14 +121,15 @@                                           Int localPort,                                           Int 1                                          ]-       send sc m+       sendOSC sc m        return sc  toFloat (Float f) = f toFloat (Int f) = fromIntegral f +readChange :: UDP -> IO (BpsChange) readChange localServer =-    do bundle <- recv localServer+    do bundle <- recvBundle localServer        let (Bundle t message) = bundle        let (Message _ (absBeat:bps:_)) = head message            absBeatF = toFloat absBeat
netclock.cabal view
@@ -7,7 +7,7 @@ -- The package version. See the Haskell package versioning policy -- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for -- standards guiding when and how versions should be incremented.-Version:             0.3+Version:             0.4  -- A short (one-line) description of the package. Synopsis:            Netclock protocol