// public members
////////////////////////////////////////////////////////////////////////////////
-RIFF::WAV::File::File(FileName file, bool readProperties,
- Properties::ReadStyle propertiesStyle) : RIFF::File(file, LittleEndian)
+RIFF::WAV::File::File(FileName file, bool readProperties, Properties::ReadStyle) :
+ RIFF::File(file, LittleEndian),
+ d(new FilePrivate())
{
- d = new FilePrivate;
if(isOpen())
- read(readProperties, propertiesStyle);
+ read(readProperties);
}
-RIFF::WAV::File::File(IOStream *stream, bool readProperties,
- Properties::ReadStyle propertiesStyle) : RIFF::File(stream, LittleEndian)
+RIFF::WAV::File::File(IOStream *stream, bool readProperties, Properties::ReadStyle) :
+ RIFF::File(stream, LittleEndian),
+ d(new FilePrivate())
{
- d = new FilePrivate;
if(isOpen())
- read(readProperties, propertiesStyle);
+ read(readProperties);
}
RIFF::WAV::File::~File()
// private members
////////////////////////////////////////////////////////////////////////////////
-void RIFF::WAV::File::read(bool readProperties, Properties::ReadStyle propertiesStyle)
+void RIFF::WAV::File::read(bool readProperties)
{
for(uint i = 0; i < chunkCount(); ++i) {
const ByteVector name = chunkName(i);
}
if(!d->tag[ID3v2Index])
- d->tag.set(ID3v2Index, new ID3v2::Tag);
+ d->tag.set(ID3v2Index, new ID3v2::Tag());
if(!d->tag[InfoIndex])
- d->tag.set(InfoIndex, new RIFF::Info::Tag);
+ d->tag.set(InfoIndex, new RIFF::Info::Tag());
if(readProperties)
- d->properties = new Properties(this, propertiesStyle);
+ d->properties = new Properties(this, Properties::Average);
}
void RIFF::WAV::File::strip(TagTypes tags)