Copyright | © 2015 Mark Karpov |
---|---|
License | BSD 3 clause |
Maintainer | Mark Karpov <markkarpov@opmbx.org> |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Definitions of types used to represent various tags and audio properties.
- data Title
- mkTitle :: String -> Title
- getTitle :: Title -> String
- data Artist
- mkArtist :: String -> Artist
- getArtist :: Artist -> String
- data Album
- mkAlbum :: String -> Album
- getAlbum :: Album -> String
- data Comment
- mkComment :: String -> Comment
- getComment :: Comment -> String
- data Genre
- mkGenre :: String -> Genre
- getGenre :: Genre -> String
- data Year
- mkYear :: Int -> Maybe Year
- getYear :: Year -> Int
- data TrackNumber
- mkTrackNumber :: Int -> Maybe TrackNumber
- getTrackNumber :: TrackNumber -> Int
- data Duration
- mkDuration :: Int -> Maybe Duration
- getDuration :: Duration -> Int
- data BitRate
- mkBitRate :: Int -> Maybe BitRate
- getBitRate :: BitRate -> Int
- data SampleRate
- mkSampleRate :: Int -> Maybe SampleRate
- getSampleRate :: SampleRate -> Int
- data Channels
- mkChannels :: Int -> Maybe Channels
- getChannels :: Channels -> Int
Documentation
Artist tag.
Comment tag.
mkComment :: String -> Comment Source
Construction of Comment
type, null bytes are converted to spaces.
data TrackNumber Source
Track number tag.
mkTrackNumber :: Int -> Maybe TrackNumber Source
Construction of TrackNumber
type, non-positive values result in
Nothing
.
getTrackNumber :: TrackNumber -> Int Source
Convert TrackNumber
to Int
.
mkDuration :: Int -> Maybe Duration Source
data SampleRate Source
Sample rate in Hz.
mkSampleRate :: Int -> Maybe SampleRate Source
Construction of SampleRate
values, non-positive values result in
Nothing
.
getSampleRate :: SampleRate -> Int Source
Convert SampleRate
to Int
.
Number of channels in the audio stream.
mkChannels :: Int -> Maybe Channels Source