/usr/share/doc/libghc-libtagc-doc/html/libtagc.txt is in libghc-libtagc-doc 0.12.0-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | -- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Binding to TagLib C library.
--
-- TagLib is a library for reading and editing the meta-data of several
-- popular audio formats. Currently it supports both ID3v1 and ID3v2 for
-- MP3 files, Ogg Vorbis comments and ID3 tags and Vorbis comments in
-- FLAC, MPC, Speex, WavPack and TrueAudio files.
@package libtagc
@version 0.12.0
module Audio.TagLib.TagLib
type TagFile = ForeignPtr Void
type Tag = TagPtr
type AudioProperties = AudioPropertiesPtr
-- | Creates a <a>TagFile</a> file based on <tt>filename</tt>, TagLib will
-- try to guess the file type. Return <a>Nothing</a> if the file type
-- cannot be determined or the file cannot opened.
tagFileOpen :: ByteString -> IO (Maybe TagFile)
-- | Save file to disk.
tagFileSave :: TagFile -> IO Bool
-- | Returns <a>True</a> if the file is open and readble and valid
-- information for the <a>Tag</a> and <a>AudioProperties</a> was found.
tagFileIsValid :: TagFile -> IO Bool
-- | Returns <a>Tag</a> associated with this file.
tagFileGetTag :: TagFile -> IO (Maybe Tag)
-- | Returns <a>AudioProperties</a> associated with this file.
tagFileGetAudioProperties :: TagFile -> IO (Maybe AudioProperties)
-- | Returns a string with this tag's album.
--
-- NOTE: by default this string should be UTF8 encoded.
tagGetAlbum :: Tag -> IO String
-- | Set tag's album.
--
-- NOTE: by default this string should be UTF8 encoded.
tagSetAlbum :: Tag -> String -> IO ()
-- | Returns a string with this tag's artist.
--
-- NOTE: by default this string should be UTF8 encoded.
tagGetArtist :: Tag -> IO String
-- | Set tag's artist.
--
-- NOTE: by default this string should be UTF8 encoded.
tagSetArtist :: Tag -> String -> IO ()
-- | Returns a string with this tag's comment.
--
-- NOTE: by default this string should be UTF8 encoded.
tagGetComment :: Tag -> IO String
-- | Set tag's comment.
--
-- NOTE: by default this string should be UTF8 encoded.
tagSetComment :: Tag -> String -> IO ()
-- | Returns a string with this tag's genre.
--
-- NOTE: by default this string should be UTF8 encoded.
tagGetGenre :: Tag -> IO String
-- | Set tag's genre.
--
-- NOTE: by default this string should be UTF8 encoded.
tagSetGenre :: Tag -> String -> IO ()
-- | Returns a string with this tag's title.
--
-- NOTE: by default this string should be UTF8 encoded.
tagGetTitle :: Tag -> IO String
-- | Set tag's title.
--
-- NOTE: by default this string should be UTF8 encoded.
tagSetTitle :: Tag -> String -> IO ()
-- | Returns a string with this tag's track.
--
-- NOTE: by default this string should be UTF8 encoded.
tagGetTrack :: Tag -> IO Int
-- | Set tag's track.
--
-- NOTE: by default this string should be UTF8 encoded.
tagSetTrack :: Tag -> Int -> IO ()
-- | Returns a string with this tag's year.
--
-- NOTE: by default this string should be UTF8 encoded.
tagGetYear :: Tag -> IO Int
-- | Set tag's year.
--
-- NOTE: by default this string should be UTF8 encoded.
tagSetYear :: Tag -> Int -> IO ()
-- | Returns the bitrate of the file in kb/s.
audioPropertiesGetBitRate :: AudioProperties -> IO Int
-- | Returns the duration of the file in seconds.
audioPropertiesGetDuration :: AudioProperties -> IO Int
-- | Returns the sample rate of the file in Hz.
audioPropertiesGetSampleRate :: AudioProperties -> IO Int
-- | Returns the number of channels in the audio stream.
audioPropertiesGetChannels :: AudioProperties -> IO Int
|