properties(0),
tag(0),
tagChunkID("ID3 "),
- hasID3v2(false)
- {
-
- }
+ hasID3v2(false) {}
~FilePrivate()
{
// public members
////////////////////////////////////////////////////////////////////////////////
-RIFF::AIFF::File::File(FileName file, bool readProperties,
- Properties::ReadStyle propertiesStyle) : RIFF::File(file, BigEndian)
+RIFF::AIFF::File::File(FileName file, bool readProperties, Properties::ReadStyle) :
+ RIFF::File(file, BigEndian),
+ d(new FilePrivate())
{
- d = new FilePrivate;
if(isOpen())
- read(readProperties, propertiesStyle);
+ read(readProperties);
}
-RIFF::AIFF::File::File(IOStream *stream, bool readProperties,
- Properties::ReadStyle propertiesStyle) : RIFF::File(stream, BigEndian)
+RIFF::AIFF::File::File(IOStream *stream, bool readProperties, Properties::ReadStyle) :
+ RIFF::File(stream, BigEndian),
+ d(new FilePrivate())
{
- d = new FilePrivate;
if(isOpen())
- read(readProperties, propertiesStyle);
+ read(readProperties);
}
RIFF::AIFF::File::~File()
// private members
////////////////////////////////////////////////////////////////////////////////
-void RIFF::AIFF::File::read(bool readProperties, Properties::ReadStyle propertiesStyle)
+void RIFF::AIFF::File::read(bool readProperties)
{
for(uint i = 0; i < chunkCount(); ++i) {
const ByteVector name = chunkName(i);
d->tag = new ID3v2::Tag();
if(readProperties)
- d->properties = new Properties(this, propertiesStyle);
+ d->properties = new Properties(this, Properties::Average);
}
// public members
////////////////////////////////////////////////////////////////////////////////
-RIFF::AIFF::Properties::Properties(const ByteVector & /*data*/, ReadStyle style) :
+RIFF::AIFF::Properties::Properties(const ByteVector &, ReadStyle style) :
AudioProperties(style),
d(new PropertiesPrivate())
{