| Copyright | © 2015–2017 Mark Karpov |
|---|---|
| License | BSD 3 clause |
| Maintainer | Mark Karpov <markkarpov92@gmail.com> |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Sound.HTagLib.Setter
Contents
Description
A high-level interface for writing audio meta data. You don't need to import this module directly, import Sound.HTagLib instead.
- data TagSetter
- setTags :: MonadIO m => FilePath -> Maybe ID3v2Encoding -> TagSetter -> m ()
- setTags' :: MonadIO m => FilePath -> Maybe ID3v2Encoding -> FileType -> TagSetter -> m ()
- titleSetter :: Title -> TagSetter
- artistSetter :: Artist -> TagSetter
- albumSetter :: Album -> TagSetter
- commentSetter :: Comment -> TagSetter
- genreSetter :: Genre -> TagSetter
- yearSetter :: Maybe Year -> TagSetter
- trackNumberSetter :: Maybe TrackNumber -> TagSetter
High-level API
Arguments
| :: MonadIO m | |
| => FilePath | Path to audio file |
| -> Maybe ID3v2Encoding | Encoding for ID3v2 frames |
| -> TagSetter | Setter |
| -> m () |
Set tags in specified file using the given setter.
In the case of trouble HTagLibException will be thrown.
Arguments
| :: MonadIO m | |
| => FilePath | Path to audio file |
| -> Maybe ID3v2Encoding | Encoding for ID3v2 frames |
| -> FileType | Type of audio file |
| -> TagSetter | Setter |
| -> m () |
Similar to setTags, but you can also specify type of audio file
explicitly (otherwise it's guessed from file extension).
Built-in setters
titleSetter :: Title -> TagSetter #
Setter for track title.
artistSetter :: Artist -> TagSetter #
Setter for track artist.
albumSetter :: Album -> TagSetter #
Setter for track album.
commentSetter :: Comment -> TagSetter #
Setter for track comment.
genreSetter :: Genre -> TagSetter #
Setter for track genre.
trackNumberSetter :: Maybe TrackNumber -> TagSetter #
Setter for track number, use Nothing to clear the field.