An implementation of TagLib::File with DSDIFF specific methods. More...
#include <dsdifffile.h>
Public Types | |
enum | TagTypes { NoTags = 0x0000 , DIIN = 0x0001 , ID3v2 = 0x0002 , AllTags = 0xffff } |
![]() | |
enum | Position { Beginning , Current , End } |
enum | StripTags { StripNone , StripOthers } |
enum | DuplicateTags { Duplicate , DoNotDuplicate } |
Static Public Member Functions | |
static bool | isSupported (IOStream *stream) |
Protected Types | |
enum | Endianness { BigEndian , LittleEndian } |
Additional Inherited Members | |
![]() | |
File (FileName fileName) | |
File (IOStream *stream) | |
void | setValid (bool valid) |
void | truncate (offset_t length) |
![]() | |
static unsigned int | bufferSize () |
An implementation of TagLib::File with DSDIFF specific methods.
This implements and provides an interface for DSDIFF 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 DSDIFF files.
|
protected |
TagLib::DSDIFF::File::File | ( | FileName | file, |
bool | readProperties = true , |
||
Properties::ReadStyle | propertiesStyle = Properties::Average , |
||
ID3v2::FrameFactory * | frameFactory = nullptr |
||
) |
TagLib::DSDIFF::File::File | ( | IOStream * | stream, |
bool | readProperties = true , |
||
Properties::ReadStyle | propertiesStyle = Properties::Average , |
||
ID3v2::FrameFactory * | frameFactory = nullptr |
||
) |
|
overridevirtual |
Destroys this instance of the File.
Reimplemented from TagLib::File.
|
overridevirtual |
Returns the AIFF::Properties for this file. If no audio properties were read then this will return a null pointer.
Implements TagLib::File.
DSDIFF::DIIN::Tag * TagLib::DSDIFF::File::DIINTag | ( | bool | create = false | ) | const |
bool TagLib::DSDIFF::File::hasDIINTag | ( | ) | const |
bool TagLib::DSDIFF::File::hasID3v2Tag | ( | ) | const |
Returns whether or not the file on disk actually has an ID3v2 tag.
ID3v2::Tag * TagLib::DSDIFF::File::ID3v2Tag | ( | bool | create = false | ) | const |
Returns the ID3V2 Tag for this file.
Returns whether or not the given stream can be opened as a DSDIFF file.
|
overridevirtual |
Implements the unified property interface – export function. This method forwards to ID3v2::Tag::properties().
Reimplemented from TagLib::File.
|
overridevirtual |
Removes unsupported properties, or a subset of them, from the file's metadata. The parameter properties must contain only entries from properties().unsupportedData().
Reimplemented from TagLib::File.
|
overridevirtual |
Save the file. If at least one tag – ID3v1 or DIIN – exists this will duplicate its content into the other tag. This returns true
if saving was successful.
If neither exists or if both tags are empty, this will strip the tags from the file.
This is the same as calling save(AllTags);
If you would like more granular control over the content of the tags, with the concession of generality, use parameterized save call below.
Implements TagLib::File.
bool TagLib::DSDIFF::File::save | ( | int | tags, |
StripTags | strip = StripOthers , |
||
ID3v2::Version | version = ID3v2::v4 |
||
) |
Save the file. If strip is specified, it is possible to choose if tags not specified in tags should be stripped from the file or retained. With version, it is possible to specify whether ID3v2.4 or ID3v2.3 should be used.
|
overridevirtual |
Implements the unified property interface – import function. This method forwards to ID3v2::Tag::setProperties().
Reimplemented from TagLib::File.
This will strip the tags that match the OR-ed together TagTypes from the file. By default it strips all tags. It returns true
if the tags are successfully stripped.
|
overridevirtual |
Returns a pointer to a tag that is the union of the ID3v2 and DIIN tags. The ID3v2 tag is given priority in reading the information – if requested information exists in both the ID3v2 tag and the ID3v1 tag, the information from the ID3v2 tag will be returned.
If you would like more granular control over the content of the tags, with the concession of generality, use the tag-type specific calls.
Implements TagLib::File.