hsdif 0.12 → 0.14
raw patch · 7 files changed
+19/−18 lines, 7 filesdep ~hoscPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: hosc
API changes (from Hackage documentation)
- Sound.SDIF.Byte.Frame: frame_b_time :: ByteString -> Double
+ Sound.SDIF.Byte.Frame: frame_b_time :: ByteString -> Float
- Sound.SDIF.Frame: Frame :: ByteString -> String -> Int -> Double -> Int -> Int -> [(Int, Int)] -> [Matrix] -> Frame
+ Sound.SDIF.Frame: Frame :: ByteString -> String -> Int -> Float -> Int -> Int -> [(Int, Int)] -> [Matrix] -> Frame
- Sound.SDIF.Frame: frame_time :: Frame -> Double
+ Sound.SDIF.Frame: frame_time :: Frame -> Float
- Sound.SDIF.Type: F32 :: Double -> Datum
+ Sound.SDIF.Type: F32 :: Float -> Datum
Files
- Help/hsdif.hs +2/−1
- Sound/SDIF/Byte/Frame.hs +3/−3
- Sound/SDIF/Byte/Matrix.hs +2/−2
- Sound/SDIF/Byte/SDIF.hs +2/−2
- Sound/SDIF/Frame.hs +2/−2
- Sound/SDIF/Type.hs +5/−5
- hsdif.cabal +3/−3
Help/hsdif.hs view
@@ -1,4 +1,5 @@-import qualified Data.ByteString.Lazy as B+import qualified Data.ByteString.Lazy as B {- bytestring -}+ import Sound.SDIF.Byte.Frame import Sound.SDIF.Byte.Matrix import Sound.SDIF.Byte.SDIF
Sound/SDIF/Byte/Frame.hs view
@@ -1,8 +1,8 @@ -- | Byte level SDIF frame data structure. module Sound.SDIF.Byte.Frame where -import qualified Data.ByteString.Lazy as B-import Sound.OpenSoundControl.Coding.Byte+import qualified Data.ByteString.Lazy as B {- bytestring -}+import Sound.OSC.Coding.Byte {- hosc -} import Sound.SDIF.Byte.Matrix import Sound.SDIF.Type @@ -21,7 +21,7 @@ frame_b_size frm = decode_i32 (section frm 4 8) -- | Extract time stamp from SDIF frame byte stream.-frame_b_time :: B.ByteString -> Double+frame_b_time :: B.ByteString -> Float frame_b_time frm = decode_f32 (section frm 8 16) -- | Extract identifier from SDIF frame byte stream.
Sound/SDIF/Byte/Matrix.hs view
@@ -1,8 +1,8 @@ -- | Byte level SDIF frame data structure. module Sound.SDIF.Byte.Matrix where -import qualified Data.ByteString.Lazy as B-import Sound.OpenSoundControl.Coding.Byte+import qualified Data.ByteString.Lazy as B {- bytestring -}+import Sound.OSC.Coding.Byte {- hosc -} import Sound.SDIF.Type -- | Data integrity check for SDIF matix byte stream.
Sound/SDIF/Byte/SDIF.hs view
@@ -1,8 +1,8 @@ -- | Byte level SDIF data structure. module Sound.SDIF.Byte.SDIF where -import qualified Data.ByteString.Lazy as B-import Sound.OpenSoundControl.Coding.Byte+import qualified Data.ByteString.Lazy as B {- bytestring -}+import Sound.OSC.Coding.Byte {- hosc -} import Sound.SDIF.Type -- | Check signature of SDIF byte stream.
Sound/SDIF/Frame.hs view
@@ -1,7 +1,7 @@ -- | SDIF frame functions module Sound.SDIF.Frame where -import qualified Data.ByteString.Lazy as B+import qualified Data.ByteString.Lazy as B {- bytestring -} import Sound.SDIF.Byte.Frame import Sound.SDIF.Matrix import Sound.SDIF.Type@@ -10,7 +10,7 @@ data Frame = Frame { frame_b :: B.ByteString , frame_type :: String , frame_size :: Int- , frame_time :: Double+ , frame_time :: Float , frame_id :: Int , frame_matrices :: Int , frame_matrix_i :: [(Int, Int)]
Sound/SDIF/Type.hs view
@@ -1,11 +1,11 @@ -- | SDIF related data types module Sound.SDIF.Type where -import Data.Bits+import Data.Bits {- base -} import qualified Data.ByteString.Lazy as B {- bytestring -}-import Data.Int-import Data.Word-import Sound.OpenSoundControl.Coding.Byte {- hosc -}+import Data.Int {- base -}+import Data.Word {- base -}+import Sound.OSC.Coding.Byte {- hosc -} -- | Section of 'B.ByteString' from /i/th to /j/th indices. section :: B.ByteString -> Int64 -> Int64 -> B.ByteString@@ -53,7 +53,7 @@ | I64 Int64 | U32 Int | U64 Word64- | F32 Double+ | F32 Float | F64 Double | U8 Word8 deriving (Eq, Show)
hsdif.cabal view
@@ -1,12 +1,12 @@ Name: hsdif-Version: 0.12+Version: 0.14 Synopsis: Haskell SDIF Description: hsdif provides Sound.SDIF, a haskell module implementing a subset of Sound Description Interchange Format. License: GPL Category: Sound-Copyright: (c) Rohan Drape, 2010-2012+Copyright: (c) Rohan Drape, 2010-2013 Author: Rohan Drape Maintainer: rd@slavepianos.org Stability: Experimental@@ -22,7 +22,7 @@ Library Build-Depends: base == 4.*, bytestring,- hosc == 0.12.*+ hosc == 0.14.* GHC-Options: -Wall -fwarn-tabs Exposed-modules: Sound.SDIF Sound.SDIF.Frame