- type TagFile = ForeignPtr Void
- type Tag = TagPtr
- type AudioProperties = AudioPropertiesPtr
- tagFileOpen :: ByteString -> IO (Maybe TagFile)
- tagFileSave :: TagFile -> IO Bool
- tagFileIsValid :: TagFile -> IO Bool
- tagFileGetTag :: TagFile -> IO (Maybe Tag)
- tagFileGetAudioProperties :: TagFile -> IO (Maybe AudioProperties)
- tagGetAlbum :: Tag -> IO String
- tagSetAlbum :: Tag -> String -> IO ()
- tagGetArtist :: Tag -> IO String
- tagSetArtist :: Tag -> String -> IO ()
- tagGetComment :: Tag -> IO String
- tagSetComment :: Tag -> String -> IO ()
- tagGetGenre :: Tag -> IO String
- tagSetGenre :: Tag -> String -> IO ()
- tagGetTitle :: Tag -> IO String
- tagSetTitle :: Tag -> String -> IO ()
- tagGetTrack :: Tag -> IO Int
- tagSetTrack :: Tag -> Int -> IO ()
- tagGetYear :: Tag -> IO Int
- tagSetYear :: Tag -> Int -> IO ()
- audioPropertiesGetBitRate :: AudioProperties -> IO Int
- audioPropertiesGetDuration :: AudioProperties -> IO Int
- audioPropertiesGetSampleRate :: AudioProperties -> IO Int
- audioPropertiesGetChannels :: AudioProperties -> IO Int
Types
type TagFile = ForeignPtr VoidSource
type AudioProperties = AudioPropertiesPtrSource
TagFile operations
tagFileOpen :: ByteString -> IO (Maybe TagFile)Source
tagFileSave :: TagFile -> IO BoolSource
Save file to disk.
tagFileIsValid :: TagFile -> IO BoolSource
Returns True
if the file is open and readble and valid information for
the Tag
and AudioProperties
was found.
tagFileGetAudioProperties :: TagFile -> IO (Maybe AudioProperties)Source
Returns AudioProperties
associated with this file.
Tag operations
tagGetAlbum :: Tag -> IO StringSource
Returns a string with this tag's album.
NOTE: by default this string should be UTF8 encoded.
tagSetAlbum :: Tag -> String -> IO ()Source
Set tag's album.
NOTE: by default this string should be UTF8 encoded.
tagGetArtist :: Tag -> IO StringSource
Returns a string with this tag's artist.
NOTE: by default this string should be UTF8 encoded.
tagSetArtist :: Tag -> String -> IO ()Source
Set tag's artist.
NOTE: by default this string should be UTF8 encoded.
tagGetComment :: Tag -> IO StringSource
Returns a string with this tag's comment.
NOTE: by default this string should be UTF8 encoded.
tagSetComment :: Tag -> String -> IO ()Source
Set tag's comment.
NOTE: by default this string should be UTF8 encoded.
tagGetGenre :: Tag -> IO StringSource
Returns a string with this tag's genre.
NOTE: by default this string should be UTF8 encoded.
tagSetGenre :: Tag -> String -> IO ()Source
Set tag's genre.
NOTE: by default this string should be UTF8 encoded.
tagGetTitle :: Tag -> IO StringSource
Returns a string with this tag's title.
NOTE: by default this string should be UTF8 encoded.
tagSetTitle :: Tag -> String -> IO ()Source
Set tag's title.
NOTE: by default this string should be UTF8 encoded.
tagGetTrack :: Tag -> IO IntSource
Returns a string with this tag's track.
NOTE: by default this string should be UTF8 encoded.
tagSetTrack :: Tag -> Int -> IO ()Source
Set tag's track.
NOTE: by default this string should be UTF8 encoded.
tagGetYear :: Tag -> IO IntSource
Returns a string with this tag's year.
NOTE: by default this string should be UTF8 encoded.
tagSetYear :: Tag -> Int -> IO ()Source
Set tag's year.
NOTE: by default this string should be UTF8 encoded.
AudioProperties Operations
audioPropertiesGetBitRate :: AudioProperties -> IO IntSource
Returns the bitrate of the file in kb/s.
audioPropertiesGetDuration :: AudioProperties -> IO IntSource
Returns the duration of the file in seconds.
audioPropertiesGetSampleRate :: AudioProperties -> IO IntSource
Returns the sample rate of the file in Hz.
audioPropertiesGetChannels :: AudioProperties -> IO IntSource
Returns the number of channels in the audio stream.