Wavpack output can now have tags and embedded cue sheet.

This commit is contained in:
chudov
2008-10-15 02:25:21 +00:00
parent e342ad80c2
commit ab94a4f25e
7 changed files with 86 additions and 19 deletions

View File

@@ -945,7 +945,7 @@ namespace JDP {
uint timeRelativeToFileStart = 0;
using (sw) {
if (_accurateRipId != null)
if (_accurateRipId != null && _config.writeArTags)
WriteLine(sw, 0, "REM ACCURATERIPID " +
_accurateRipId);
@@ -1602,9 +1602,8 @@ namespace JDP {
{
iDest++;
audioDest = GetAudioDest(destPaths[iDest], destLengths[iDest], noOutput);
if (audioDest is FLACWriter)
if (audioDest is FLACWriter || audioDest is WavPackWriter)
{
FLACWriter w = (FLACWriter)audioDest;
NameValueCollection destTags = new NameValueCollection();
if (_hasEmbeddedCUESheet || _hasSingleFilename)
@@ -1649,7 +1648,7 @@ namespace JDP {
else
destTags.Add("ACCURATERIPID", _accurateRipId);
}
w.SetTags(destTags);
audioDest.SetTags(destTags);
}
}