Safe Haskell | None |
---|
- data Tag
- data AudioProperties
- newtype TagLib a = TagLib {}
- data TLEnv = TLEnv {}
- withFiles :: [FilePath] -> TagLib a -> IO (Maybe [a])
- withFile :: FilePath -> TagLib a -> IO (Maybe a)
- getTitle :: TagLib Text
- setTitle :: Text -> TagLib ()
- getArtist :: TagLib Text
- setArtist :: Text -> TagLib ()
- getAlbum :: TagLib Text
- setAlbum :: Text -> TagLib ()
- getComment :: TagLib Text
- setComment :: Text -> TagLib ()
- getGenre :: TagLib Text
- setGenre :: Text -> TagLib ()
- getYear :: TagLib Int
- setYear :: Int -> TagLib ()
- getTrack :: TagLib Int
- setTrack :: Int -> TagLib ()
- getLength :: TagLib Int
- getBitrate :: TagLib Int
- getSampleRate :: TagLib Int
- getChannels :: TagLib Int
- io :: IO a -> TagLib a
Documentation
data AudioProperties Source
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
.
setComment :: Text -> TagLib ()Source
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.