Class: TagLib::MPC::File
Overview
An implementation of TagLib::File with MPC specific methods. .
This implements and provides an interface for MPC files to the TagLib::Tag and TagLib::AudioProperties interfaces by way of implementing the abstract TagLib::File API as well as providing some additional information specific to MPC files. The only invalid tag combination supported is an ID3v1 tag after an APE tag.
Instance Method Summary collapse
-
#APETag(create = false) ⇒ Object
Returns a pointer to the APE tag of the file.If create is false (the default) this will return a null pointer if there is no valid APE tag.
-
#audioProperties ⇒ Object
Returns the MPC::Properties for this file.
- #clear ⇒ Object
- #find1 ⇒ Object
- #find2 ⇒ Object
- #find3 ⇒ Object
-
#ID3v1Tag(create = false) ⇒ Object
Returns a pointer to the ID3v1 tag of the file.If create is false (the default) this will return a null pointer if there is no valid ID3v1 tag.
- #insert ⇒ Object
- #isOpen ⇒ Object
- #isValid ⇒ Object
- #isWritable ⇒ Object
- #length ⇒ Object
- #name ⇒ Object
- #open? ⇒ Boolean
- #read_only? ⇒ Boolean
- #readBlock ⇒ Object
- #readOnly ⇒ Object
-
#remove(tags = AllTags) ⇒ Object
Deprecatedstrip.
- #removeBlock ⇒ Object
- #rfind ⇒ Object
-
#save ⇒ Object
Saves the file.
- #seek ⇒ Object
-
#strip(tags = AllTags) ⇒ Object
This will remove the tags that match the OR-ed together TagTypes from the file.
-
#tag ⇒ Object
Returns the Tag for this file.
- #tell ⇒ Object
- #valid? ⇒ Boolean
- #writable? ⇒ Boolean
- #writeBlock ⇒ Object
Instance Method Details
#APETag(create = false) ⇒ Object
Returns a pointer to the APE tag of the file.If create is false (the default) this will return a null pointer if there is no valid APE tag. If create is true it will create a APE tag if one does not exist. If there is already an ID3v1 tag, thes new APE tag will be placed before it.The Tag is still owned by the APE::File and should not be deleted by the user. It will be deleted when the file (object) is destroyed.
2120 2121 |
# File 'lib/TagLib_doc.rb', line 2120 def APETag(create = false) end |
#audioProperties ⇒ Object
Returns the MPC::Properties for this file. If no audio properties were read then this will return a null pointer.
2129 2130 |
# File 'lib/TagLib_doc.rb', line 2129 def audioProperties() end |
#clear ⇒ Object
2084 2085 |
# File 'lib/TagLib_doc.rb', line 2084 def clear() end |
#find1 ⇒ Object
2114 2115 |
# File 'lib/TagLib_doc.rb', line 2114 def find1() end |
#find2 ⇒ Object
2133 2134 |
# File 'lib/TagLib_doc.rb', line 2133 def find2() end |
#find3 ⇒ Object
2068 2069 |
# File 'lib/TagLib_doc.rb', line 2068 def find3() end |
#ID3v1Tag(create = false) ⇒ Object
Returns a pointer to the ID3v1 tag of the file.If create is false (the default) this will return a null pointer if there is no valid ID3v1 tag. If create is true it will create an ID3v1 tag if one does not exist. If there is already an APE tag, the new ID3v1 tag will be placed after it.The Tag is still owned by the APE::File and should not be deleted by the user. It will be deleted when the file (object) is destroyed.
2078 2079 |
# File 'lib/TagLib_doc.rb', line 2078 def ID3v1Tag(create = false) end |
#insert ⇒ Object
2122 2123 |
# File 'lib/TagLib_doc.rb', line 2122 def insert() end |
#isOpen ⇒ Object
2072 2073 |
# File 'lib/TagLib_doc.rb', line 2072 def isOpen() end |
#isValid ⇒ Object
2106 2107 |
# File 'lib/TagLib_doc.rb', line 2106 def isValid() end |
#isWritable ⇒ Object
2062 2063 |
# File 'lib/TagLib_doc.rb', line 2062 def isWritable() end |
#length ⇒ Object
2135 2136 |
# File 'lib/TagLib_doc.rb', line 2135 def length() end |
#name ⇒ Object
2064 2065 |
# File 'lib/TagLib_doc.rb', line 2064 def name() end |
#open? ⇒ Boolean
2097 2098 |
# File 'lib/TagLib_doc.rb', line 2097 def open?() end |
#read_only? ⇒ Boolean
2070 2071 |
# File 'lib/TagLib_doc.rb', line 2070 def read_only?() end |
#readBlock ⇒ Object
2080 2081 |
# File 'lib/TagLib_doc.rb', line 2080 def readBlock() end |
#readOnly ⇒ Object
2124 2125 |
# File 'lib/TagLib_doc.rb', line 2124 def readOnly() end |
#remove(tags = AllTags) ⇒ Object
Deprecatedstrip
2112 2113 |
# File 'lib/TagLib_doc.rb', line 2112 def remove( = AllTags) end |
#removeBlock ⇒ Object
2093 2094 |
# File 'lib/TagLib_doc.rb', line 2093 def removeBlock() end |
#rfind ⇒ Object
2082 2083 |
# File 'lib/TagLib_doc.rb', line 2082 def rfind() end |
#save ⇒ Object
Saves the file.
2142 2143 |
# File 'lib/TagLib_doc.rb', line 2142 def save() end |
#seek ⇒ Object
2066 2067 |
# File 'lib/TagLib_doc.rb', line 2066 def seek() end |
#strip(tags = AllTags) ⇒ Object
This will remove the tags that match the OR-ed together TagTypes from the file. By default it removes all tags.This will also invalidate pointers to the tags as their memory will be freed. In order to make the removal permanent save() still needs to be called.
2104 2105 |
# File 'lib/TagLib_doc.rb', line 2104 def strip( = AllTags) end |
#tag ⇒ Object
Returns the Tag for this file. This will be an APE tag, an ID3v1 tag or a combination of the two.
2089 2090 |
# File 'lib/TagLib_doc.rb', line 2089 def tag() end |
#tell ⇒ Object
2131 2132 |
# File 'lib/TagLib_doc.rb', line 2131 def tell() end |
#valid? ⇒ Boolean
2137 2138 |
# File 'lib/TagLib_doc.rb', line 2137 def valid?() end |
#writable? ⇒ Boolean
2095 2096 |
# File 'lib/TagLib_doc.rb', line 2095 def writable?() end |
#writeBlock ⇒ Object
2091 2092 |
# File 'lib/TagLib_doc.rb', line 2091 def writeBlock() end |