hsc3-sf-hsndfile 0.14 → 0.15
raw patch · 3 files changed
+11/−9 lines, 3 filesdep ~hsc3-sfPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: hsc3-sf
API changes (from Hackage documentation)
+ Sound.File.HSndFile: duration :: Header -> Double
Files
- README +1/−1
- Sound/File/HSndFile.hs +5/−3
- hsc3-sf-hsndfile.cabal +5/−5
README view
@@ -8,7 +8,7 @@ [hsc3-sf]: http://rd.slavepianos.org/?t=hsc3-sf [hsf]: http://code.haskell.org/hsndfile -© [rohan drape][rd], 2010-2013, [gpl]+© [rohan drape][rd], 2010-2014, [gpl] [rd]: http://rd.slavepianos.org/ [gpl]: http://gnu.org/copyleft/
Sound/File/HSndFile.hs view
@@ -1,7 +1,5 @@ -- | Read and write sound files using hsndfile.-module Sound.File.HSndFile ( Header(..)- , header- , read ) where+module Sound.File.HSndFile where import qualified Data.Vector.Storable as V import Prelude hiding (read)@@ -14,6 +12,10 @@ , frameCount :: Int , sampleRate :: Double } deriving (Eq, Show)++-- | Duration of sound file in seconds.+duration :: Header -> Double+duration (Header _ nf sr) = fromIntegral nf / sr -- | Read 'Header' of sound file. header :: FilePath -> IO Header
hsc3-sf-hsndfile.cabal view
@@ -1,5 +1,5 @@ Name: hsc3-sf-hsndfile-Version: 0.14+Version: 0.15 Synopsis: Haskell SuperCollider SoundFile Description: hsc3-sf-sndfile provides a trivial hsc3-sf equivalent interface to Stefan Kersten's hsndfile package. hsndfile@@ -8,12 +8,12 @@ modifying a single import. License: GPL Category: Sound-Copyright: (c) Rohan Drape, 2012-2013+Copyright: (c) Rohan Drape, 2012-2014 Author: Rohan Drape Maintainer: rd@slavepianos.org Stability: Experimental-Homepage: http://rd.slavepianos.org/?t=hsc3-sf-hsndfile-Tested-With: GHC == 7.6.1+Homepage: http://rd.slavepianos.org/t/hsc3-sf-hsndfile+Tested-With: GHC == 7.8.2 Build-Type: Simple Cabal-Version: >= 1.8 @@ -23,7 +23,7 @@ Library Build-Depends: array, base == 4.*,- hsc3-sf == 0.14.*,+ hsc3-sf == 0.15.*, hsndfile >= 0.5.0, hsndfile-vector >= 0.5.0, vector >= 0.5