taglib-api-0.1.0.0: A convenient layer over TagLib's C bindings

Safe HaskellNone

Audio.TagLib

Synopsis

Documentation

data Tag Source

Abstract Tag object.

newtype TagLib a Source

Constructors

TagLib 

Fields

runTagLib :: ReaderT TLEnv IO a
 

data TLEnv Source

Environment type for TagLib.

Constructors

TLEnv 

withFiles :: [FilePath] -> TagLib a -> IO (Maybe [a])Source

Process a computation requiring a Ptr Tag and Ptr AudioProperties using a given file, producing one result for each FilePath given.

withFile :: FilePath -> TagLib a -> IO (Maybe a)Source

Process a computation for exactly one file, as per withFiles.

getLength :: TagLib IntSource

Retrieves the duration of the given file, in seconds.

getBitrate :: TagLib IntSource

Retrieves the bitrate of the given file, in kb/s.

getSampleRate :: TagLib IntSource

Retrieves the sample rate of the given file, in Hz.

getChannels :: TagLib IntSource

Retrieves the number of channels in the given file.

io :: IO a -> TagLib aSource

lift an IO action into TagLib.