htaglib-0.1.1: Bindings to TagLib, audio meta-data library

Copyright© 2015 Mark Karpov
LicenseBSD 3 clause
MaintainerMark Karpov <markkarpov@opmbx.org>
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Sound.HTagLib.Type

Description

Definitions of types used to represent various tags and audio properties.

Synopsis

Documentation

mkTitle :: String -> Title Source

Construction of Title type, null bytes are converted to spaces.

mkArtist :: String -> Artist Source

Construction of Artist type, null bytes are converted to spaces.

mkAlbum :: String -> Album Source

Construction of Album type, null bytes are converted to spaces.

mkComment :: String -> Comment Source

Construction of Comment type, null bytes are converted to spaces.

mkGenre :: String -> Genre Source

Construction of Genre type, null bytes are converted to spaces.

data Year Source

Year tag.

mkYear :: Int -> Maybe Year Source

Construction of Year type, non-positive values result in Nothing.

getYear :: Year -> Int Source

Convert Year to Int.

mkTrackNumber :: Int -> Maybe TrackNumber Source

Construction of TrackNumber type, non-positive values result in Nothing.

data Duration Source

Duration in seconds.

mkDuration :: Int -> Maybe Duration Source

Construction of Duration values, negative values result in Nothing.

data BitRate Source

Bit rate in kb/s.

mkBitRate :: Int -> Maybe BitRate Source

Construction of BitRate values, negative values result in Nothing.

mkSampleRate :: Int -> Maybe SampleRate Source

Construction of SampleRate values, non-positive values result in Nothing.

data Channels Source

Number of channels in the audio stream.

mkChannels :: Int -> Maybe Channels Source

Construction of Channels values, non-positive values result in Nothing.