Dont use deprecated function

This commit is contained in:
craig.p.drummond@gmail.com
2012-08-10 11:14:43 +00:00
committed by craig.p.drummond@gmail.com
parent 5dd0942066
commit 0659ed2d30

View File

@@ -243,8 +243,7 @@ static void setRva2Tag(TagLib::ID3v2::Tag* tag, const std::string &tagName, doub
frame->setIdentification(tagName);
tag->addFrame(frame);
}
frame->setChannelType(TagLib::ID3v2::RelativeVolumeFrame::MasterVolume);
frame->setVolumeAdjustment(float(gain));
frame->setVolumeAdjustment(float(gain), TagLib::ID3v2::RelativeVolumeFrame::MasterVolume);
TagLib::ID3v2::RelativeVolumeFrame::PeakVolume peakVolume;
peakVolume.bitsRepresentingPeak = 16;