read(readProperties, propertiesStyle);
}
+APE::File::File(IOStream *stream, bool readProperties,
+ Properties::ReadStyle propertiesStyle) : TagLib::File(stream)
+{
+ d = new FilePrivate;
+ read(readProperties, propertiesStyle);
+}
+
APE::File::~File()
{
delete d;
File(FileName file, bool readProperties = true,
Properties::ReadStyle propertiesStyle = Properties::Average);
+ /*!
+ * Contructs an WavPack file from \a file. If \a readProperties is true the
+ * file's audio properties will also be read using \a propertiesStyle. If
+ * false, \a propertiesStyle is ignored.
+ */
+ File(IOStream *stream, bool readProperties = true,
+ Properties::ReadStyle propertiesStyle = Properties::Average);
+
/*!
* Destroys this instance of the File.
*/
read(readProperties, propertiesStyle);
}
+ASF::File::File(IOStream *stream, bool readProperties, Properties::ReadStyle propertiesStyle)
+ : TagLib::File(stream)
+{
+ d = new FilePrivate;
+ read(readProperties, propertiesStyle);
+}
+
ASF::File::~File()
{
for(unsigned int i = 0; i < d->objects.size(); i++) {
*/
File(FileName file, bool readProperties = true, Properties::ReadStyle propertiesStyle = Properties::Average);
+ /*!
+ * Contructs an ASF file from \a file. If \a readProperties is true the
+ * file's audio properties will also be read using \a propertiesStyle. If
+ * false, \a propertiesStyle is ignored.
+ *
+ * \note In the current implementation, both \a readProperties and
+ * \a propertiesStyle are ignored.
+ */
+ File(IOStream *stream, bool readProperties = true, Properties::ReadStyle propertiesStyle = Properties::Average);
+
/*!
* Destroys this instance of the File.
*/
read(readProperties, propertiesStyle);
}
+FLAC::File::File(IOStream *stream, ID3v2::FrameFactory *frameFactory,
+ bool readProperties, Properties::ReadStyle propertiesStyle) :
+ TagLib::File(stream)
+{
+ d = new FilePrivate;
+ d->ID3v2FrameFactory = frameFactory;
+ read(readProperties, propertiesStyle);
+}
+
FLAC::File::~File()
{
delete d;
bool readProperties = true,
Properties::ReadStyle propertiesStyle = Properties::Average);
+ /*!
+ * Contructs a FLAC file from \a file. If \a readProperties is true the
+ * file's audio properties will also be read using \a propertiesStyle. If
+ * false, \a propertiesStyle is ignored.
+ *
+ * If this file contains and ID3v2 tag the frames will be created using
+ * \a frameFactory.
+ */
+ // BIC: merge with the above constructor
+ File(IOStream *stream, ID3v2::FrameFactory *frameFactory,
+ bool readProperties = true,
+ Properties::ReadStyle propertiesStyle = Properties::Average);
+
/*!
* Destroys this instance of the File.
*/
read(readProperties, audioPropertiesStyle);
}
+MP4::File::File(IOStream *stream, bool readProperties, AudioProperties::ReadStyle audioPropertiesStyle)
+ : TagLib::File(stream)
+{
+ d = new FilePrivate;
+ read(readProperties, audioPropertiesStyle);
+}
+
MP4::File::~File()
{
delete d;
*/
File(FileName file, bool readProperties = true, Properties::ReadStyle audioPropertiesStyle = Properties::Average);
+ /*!
+ * Contructs a MP4 file from \a file. If \a readProperties is true the
+ * file's audio properties will also be read using \a propertiesStyle. If
+ * false, \a propertiesStyle is ignored.
+ *
+ * \note In the current implementation, both \a readProperties and
+ * \a propertiesStyle are ignored.
+ */
+ File(IOStream *stream, bool readProperties = true, Properties::ReadStyle audioPropertiesStyle = Properties::Average);
+
/*!
* Destroys this instance of the File.
*/
read(readProperties, propertiesStyle);
}
+MPC::File::File(IOStream *stream, bool readProperties,
+ Properties::ReadStyle propertiesStyle) : TagLib::File(stream)
+{
+ d = new FilePrivate;
+ read(readProperties, propertiesStyle);
+}
+
MPC::File::~File()
{
delete d;
File(FileName file, bool readProperties = true,
Properties::ReadStyle propertiesStyle = Properties::Average);
+ /*!
+ * Contructs an MPC file from \a file. If \a readProperties is true the
+ * file's audio properties will also be read using \a propertiesStyle. If
+ * false, \a propertiesStyle is ignored.
+ */
+ File(IOStream *stream, bool readProperties = true,
+ Properties::ReadStyle propertiesStyle = Properties::Average);
+
/*!
* Destroys this instance of the File.
*/
read(readProperties, propertiesStyle);
}
+Ogg::FLAC::File::File(IOStream *stream, bool readProperties,
+ Properties::ReadStyle propertiesStyle) : Ogg::File(stream)
+{
+ d = new FilePrivate;
+ read(readProperties, propertiesStyle);
+}
+
Ogg::FLAC::File::~File()
{
delete d;
File(FileName file, bool readProperties = true,
Properties::ReadStyle propertiesStyle = Properties::Average);
+ /*!
+ * Contructs an Ogg/FLAC file from \a file. If \a readProperties is true
+ * the file's audio properties will also be read using \a propertiesStyle.
+ * If false, \a propertiesStyle is ignored.
+ */
+ File(IOStream *stream, bool readProperties = true,
+ Properties::ReadStyle propertiesStyle = Properties::Average);
+
/*!
* Destroys this instance of the File.
*/
d = new FilePrivate;
}
+Ogg::File::File(IOStream *stream) : TagLib::File(stream)
+{
+ d = new FilePrivate;
+}
+
////////////////////////////////////////////////////////////////////////////////
// private members
////////////////////////////////////////////////////////////////////////////////
*/
File(FileName file);
+ /*!
+ * Contructs an Ogg file from \a file. If \a readProperties is true the
+ * file's audio properties will also be read using \a propertiesStyle. If
+ * false, \a propertiesStyle is ignored.
+ *
+ * \note This constructor is protected since Ogg::File shouldn't be
+ * instantiated directly but rather should be used through the codec
+ * specific subclasses.
+ */
+ File(IOStream *stream);
+
private:
File(const File &);
File &operator=(const File &);
read(readProperties, propertiesStyle);
}
+Speex::File::File(IOStream *stream, bool readProperties,
+ Properties::ReadStyle propertiesStyle) : Ogg::File(stream)
+{
+ d = new FilePrivate;
+ read(readProperties, propertiesStyle);
+}
+
Speex::File::~File()
{
delete d;
File(FileName file, bool readProperties = true,
Properties::ReadStyle propertiesStyle = Properties::Average);
+ /*!
+ * Contructs a Speex file from \a file. If \a readProperties is true the
+ * file's audio properties will also be read using \a propertiesStyle. If
+ * false, \a propertiesStyle is ignored.
+ */
+ File(IOStream *stream, bool readProperties = true,
+ Properties::ReadStyle propertiesStyle = Properties::Average);
+
/*!
* Destroys this instance of the File.
*/
read(readProperties, propertiesStyle);
}
+Vorbis::File::File(IOStream *stream, bool readProperties,
+ Properties::ReadStyle propertiesStyle) : Ogg::File(stream)
+{
+ d = new FilePrivate;
+ read(readProperties, propertiesStyle);
+}
+
Vorbis::File::~File()
{
delete d;
File(FileName file, bool readProperties = true,
Properties::ReadStyle propertiesStyle = Properties::Average);
+ /*!
+ * Contructs a Vorbis file from \a file. If \a readProperties is true the
+ * file's audio properties will also be read using \a propertiesStyle. If
+ * false, \a propertiesStyle is ignored.
+ */
+ File(IOStream *stream, bool readProperties = true,
+ Properties::ReadStyle propertiesStyle = Properties::Average);
+
/*!
* Destroys this instance of the File.
*/
read(readProperties, propertiesStyle);
}
+RIFF::AIFF::File::File(IOStream *stream, bool readProperties,
+ Properties::ReadStyle propertiesStyle) : RIFF::File(stream, BigEndian)
+{
+ d = new FilePrivate;
+ if(isOpen())
+ read(readProperties, propertiesStyle);
+}
+
RIFF::AIFF::File::~File()
{
delete d;
File(FileName file, bool readProperties = true,
Properties::ReadStyle propertiesStyle = Properties::Average);
+ /*!
+ * Contructs an AIFF file from \a file. If \a readProperties is true the
+ * file's audio properties will also be read using \a propertiesStyle. If
+ * false, \a propertiesStyle is ignored.
+ */
+ File(IOStream *stream, bool readProperties = true,
+ Properties::ReadStyle propertiesStyle = Properties::Average);
+
/*!
* Destroys this instance of the File.
*/
read();
}
+RIFF::File::File(IOStream *stream, Endianness endianness) : TagLib::File(stream)
+{
+ d = new FilePrivate;
+ d->endianness = endianness;
+
+ if(isOpen())
+ read();
+}
+
TagLib::uint RIFF::File::riffSize() const
{
return d->size;
enum Endianness { BigEndian, LittleEndian };
File(FileName file, Endianness endianness);
+ File(IOStream *stream, Endianness endianness);
/*!
* \return The size of the main RIFF chunk.
read(readProperties, propertiesStyle);
}
+RIFF::WAV::File::File(IOStream *stream, bool readProperties,
+ Properties::ReadStyle propertiesStyle) : RIFF::File(stream, LittleEndian)
+{
+ d = new FilePrivate;
+ if(isOpen())
+ read(readProperties, propertiesStyle);
+}
+
RIFF::WAV::File::~File()
{
delete d;
File(FileName file, bool readProperties = true,
Properties::ReadStyle propertiesStyle = Properties::Average);
+ /*!
+ * Contructs an WAV file from \a file. If \a readProperties is true the
+ * file's audio properties will also be read using \a propertiesStyle. If
+ * false, \a propertiesStyle is ignored.
+ */
+ File(IOStream *stream, bool readProperties = true,
+ Properties::ReadStyle propertiesStyle = Properties::Average);
+
/*!
* Destroys this instance of the File.
*/
read(readProperties, propertiesStyle);
}
+TrueAudio::File::File(IOStream *stream, bool readProperties,
+ Properties::ReadStyle propertiesStyle) : TagLib::File(stream)
+{
+ d = new FilePrivate;
+ if(isOpen())
+ read(readProperties, propertiesStyle);
+}
+
+TrueAudio::File::File(IOStream *stream, ID3v2::FrameFactory *frameFactory,
+ bool readProperties, Properties::ReadStyle propertiesStyle) :
+ TagLib::File(stream)
+{
+ d = new FilePrivate(frameFactory);
+ if(isOpen())
+ read(readProperties, propertiesStyle);
+}
+
TrueAudio::File::~File()
{
delete d;
bool readProperties = true,
Properties::ReadStyle propertiesStyle = Properties::Average);
+ /*!
+ * Contructs an TrueAudio file from \a file. If \a readProperties is true the
+ * file's audio properties will also be read using \a propertiesStyle. If
+ * false, \a propertiesStyle is ignored.
+ */
+ File(IOStream *stream, bool readProperties = true,
+ Properties::ReadStyle propertiesStyle = Properties::Average);
+
+ /*!
+ * Contructs an TrueAudio file from \a file. If \a readProperties is true the
+ * file's audio properties will also be read using \a propertiesStyle. If
+ * false, \a propertiesStyle is ignored. The frames will be created using
+ * \a frameFactory.
+ */
+ File(IOStream *stream, ID3v2::FrameFactory *frameFactory,
+ bool readProperties = true,
+ Properties::ReadStyle propertiesStyle = Properties::Average);
+
/*!
* Destroys this instance of the File.
*/
read(readProperties, propertiesStyle);
}
+WavPack::File::File(IOStream *stream, bool readProperties,
+ Properties::ReadStyle propertiesStyle) : TagLib::File(stream)
+{
+ d = new FilePrivate;
+ read(readProperties, propertiesStyle);
+}
+
WavPack::File::~File()
{
delete d;
File(FileName file, bool readProperties = true,
Properties::ReadStyle propertiesStyle = Properties::Average);
+ /*!
+ * Contructs an WavPack file from \a file. If \a readProperties is true the
+ * file's audio properties will also be read using \a propertiesStyle. If
+ * false, \a propertiesStyle is ignored.
+ */
+ File(IOStream *stream, bool readProperties = true,
+ Properties::ReadStyle propertiesStyle = Properties::Average);
+
/*!
* Destroys this instance of the File.
*/