Class: TagLib::FLAC::File
- Inherits:
-
TagLib::File
- Object
- TagLib::File
- TagLib::FLAC::File
- Defined in:
- lib/TagLib_doc.rb
Overview
An implementation of TagLib::File with FLAC specific methods. .
This implements and provides an interface for FLAC 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 FLAC files.
Instance Method Summary collapse
-
#audioProperties ⇒ Object
Returns the FLAC::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.
-
#ID3v2Tag(create = false) ⇒ Object
Returns a pointer to the ID3v2 tag of the file.If create is false (the default) this will return a null pointer if there is no valid ID3v2 tag.
- #insert ⇒ Object
- #isOpen ⇒ Object
- #isValid ⇒ Object
- #isWritable ⇒ Object
- #length ⇒ Object
- #name ⇒ Object
- #open? ⇒ Boolean
- #read_only? ⇒ Boolean
- #readBlock ⇒ Object
- #readOnly ⇒ Object
- #removeBlock ⇒ Object
- #rfind ⇒ Object
-
#save ⇒ Object
Save the file.
- #seek ⇒ Object
-
#setID3v2FrameFactory(factory) ⇒ Object
Set the ID3v2::FrameFactory to something other than the default.
-
#streamInfoData ⇒ Object
Returns the block of data used by FLAC::Properties for parsing the stream properties.DeprecatedThis method will not be public in a future release.
-
#streamLength ⇒ Object
Returns the length of the audio-stream, used by FLAC::Properties for calculating the bitrate.DeprecatedThis method will not be public in a future release.
-
#tag ⇒ Object
Returns the Tag for this file.
- #tell ⇒ Object
- #valid? ⇒ Boolean
- #writable? ⇒ Boolean
- #writeBlock ⇒ Object
-
#xiphComment(create = false) ⇒ Object
Returns a pointer to the XiphComment for the file.If create is false (the default) this will return a null pointer if there is no valid XiphComment.
Instance Method Details
#audioProperties ⇒ Object
Returns the FLAC::Properties for this file. If no audio properties were read then this will return a null pointer.
2264 2265 |
# File 'lib/TagLib_doc.rb', line 2264 def audioProperties() end |
#clear ⇒ Object
2221 2222 |
# File 'lib/TagLib_doc.rb', line 2221 def clear() end |
#find1 ⇒ Object
2250 2251 |
# File 'lib/TagLib_doc.rb', line 2250 def find1() end |
#find2 ⇒ Object
2268 2269 |
# File 'lib/TagLib_doc.rb', line 2268 def find2() end |
#find3 ⇒ Object
2199 2200 |
# File 'lib/TagLib_doc.rb', line 2199 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.The Tag is still owned by the FLAC::File and should not be deleted by the user. It will be deleted when the file (object) is destroyed.
2209 2210 |
# File 'lib/TagLib_doc.rb', line 2209 def ID3v1Tag(create = false) end |
#ID3v2Tag(create = false) ⇒ Object
Returns a pointer to the ID3v2 tag of the file.If create is false (the default) this will return a null pointer if there is no valid ID3v2 tag. If create is true it will create an ID3v2 tag if one does not exist.The Tag is still owned by the FLAC::File and should not be deleted by the user. It will be deleted when the file (object) is destroyed.
2276 2277 |
# File 'lib/TagLib_doc.rb', line 2276 def ID3v2Tag(create = false) end |
#insert ⇒ Object
2252 2253 |
# File 'lib/TagLib_doc.rb', line 2252 def insert() end |
#isOpen ⇒ Object
2203 2204 |
# File 'lib/TagLib_doc.rb', line 2203 def isOpen() end |
#isValid ⇒ Object
2243 2244 |
# File 'lib/TagLib_doc.rb', line 2243 def isValid() end |
#isWritable ⇒ Object
2193 2194 |
# File 'lib/TagLib_doc.rb', line 2193 def isWritable() end |
#length ⇒ Object
2270 2271 |
# File 'lib/TagLib_doc.rb', line 2270 def length() end |
#name ⇒ Object
2195 2196 |
# File 'lib/TagLib_doc.rb', line 2195 def name() end |
#open? ⇒ Boolean
2241 2242 |
# File 'lib/TagLib_doc.rb', line 2241 def open?() end |
#read_only? ⇒ Boolean
2201 2202 |
# File 'lib/TagLib_doc.rb', line 2201 def read_only?() end |
#readBlock ⇒ Object
2211 2212 |
# File 'lib/TagLib_doc.rb', line 2211 def readBlock() end |
#readOnly ⇒ Object
2254 2255 |
# File 'lib/TagLib_doc.rb', line 2254 def readOnly() end |
#removeBlock ⇒ Object
2237 2238 |
# File 'lib/TagLib_doc.rb', line 2237 def removeBlock() end |
#rfind ⇒ Object
2219 2220 |
# File 'lib/TagLib_doc.rb', line 2219 def rfind() end |
#save ⇒ Object
Save the file. This will primarily save the XiphComment, but will also keep any old ID3-tags up to date. If the file has no XiphComment, one will be constructed from the ID3-tags.This returns true if the save was successful.
2283 2284 |
# File 'lib/TagLib_doc.rb', line 2283 def save() end |
#seek ⇒ Object
2197 2198 |
# File 'lib/TagLib_doc.rb', line 2197 def seek() end |
#setID3v2FrameFactory(factory) ⇒ Object
Set the ID3v2::FrameFactory to something other than the default. This can be used to specify the way that ID3v2 frames will be interpreted whenID3v2FrameFactory
2235 2236 |
# File 'lib/TagLib_doc.rb', line 2235 def setID3v2FrameFactory(factory) end |
#streamInfoData ⇒ Object
Returns the block of data used by FLAC::Properties for parsing the stream properties.DeprecatedThis method will not be public in a future release.
2259 2260 |
# File 'lib/TagLib_doc.rb', line 2259 def streamInfoData() end |
#streamLength ⇒ Object
Returns the length of the audio-stream, used by FLAC::Properties for calculating the bitrate.DeprecatedThis method will not be public in a future release.
2248 2249 |
# File 'lib/TagLib_doc.rb', line 2248 def streamLength() end |
#tag ⇒ Object
Returns the Tag for this file. This will be a union of XiphComment, ID3v1 and ID3v2 tags.ID3v2Tag() ID3v1Tag() XiphComment()
2227 2228 |
# File 'lib/TagLib_doc.rb', line 2227 def tag() end |
#tell ⇒ Object
2266 2267 |
# File 'lib/TagLib_doc.rb', line 2266 def tell() end |
#valid? ⇒ Boolean
2278 2279 |
# File 'lib/TagLib_doc.rb', line 2278 def valid?() end |
#writable? ⇒ Boolean
2239 2240 |
# File 'lib/TagLib_doc.rb', line 2239 def writable?() end |
#writeBlock ⇒ Object
2229 2230 |
# File 'lib/TagLib_doc.rb', line 2229 def writeBlock() end |
#xiphComment(create = false) ⇒ Object
Returns a pointer to the XiphComment for the file.If create is false (the default) this will return a null pointer if there is no valid XiphComment. If create is true it will create a XiphComment if one does not exist.The Tag is still owned by the FLAC::File and should not be deleted by the user. It will be deleted when the file (object) is destroyed.
2217 2218 |
# File 'lib/TagLib_doc.rb', line 2217 def xiphComment(create = false) end |