*/
void setID3v2FrameFactory(const ID3v2::FrameFactory *factory);
+ /*!
+ * Returns the block of data used by FLAC::Properties for parsing the
+ * stream properties.
+ */
+ ByteVector streamInfoData(); // BIC: remove
+
/*!
* Returns the length of the audio-stream, used by FLAC::Properties for
* calculating the bitrate.
*/
- long streamLength();
+ long streamLength(); // BIC: remove
private:
File(const File &);
void scan();
long findID3v2();
long findID3v1();
- ByteVector streamInfoData();
ByteVector xiphCommentData();
class FilePrivate;
read();
}
+FLAC::Properties::Properties(File *file, ReadStyle style) : AudioProperties(style)
+{
+ d = new PropertiesPrivate(file->streamInfoData(), file->streamLength(), style);
+ read();
+}
+
FLAC::Properties::~Properties()
{
delete d;
/*!
* Create an instance of FLAC::Properties with the data read from the
* ByteVector \a data.
- * BIC: API changed since last stable release
*/
Properties(ByteVector data, long streamLength, ReadStyle style = Average);
+ /*!
+ * Create an instance of FLAC::Properties with the data read from the
+ * FLAC::File \a file.
+ */
+ Properties(File *file, ReadStyle style = Average); // BIC: remove
+
/*!
* Destroys this FLAC::Properties instance.
*/