* preserving modification times

This commit is contained in:
chudov
2008-10-25 19:14:44 +00:00
parent 47534c491a
commit e54126a978
4 changed files with 13 additions and 7 deletions

View File

@@ -104,7 +104,8 @@ namespace CUEToolsLib {
public WAVReader(string path) {
_path = path;
_fs = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read);
//_fs = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read);
_fs = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, 0x10000, FileOptions.SequentialScan);
_br = new BinaryReader(_fs);
ParseHeaders();
@@ -416,9 +417,9 @@ namespace CUEToolsLib {
set { _flacReader.Tags = value; }
}
public bool UpdateTags()
public bool UpdateTags(bool preserveTime)
{
return _flacReader.UpdateTags();
return _flacReader.UpdateTags(preserveTime);
}
public ulong Length {

View File

@@ -1521,7 +1521,7 @@ namespace CUEToolsLib
GenerateAccurateRipTags (tags, 0, bestOffset, -1);
#if !MONO
if (audioSource is FLACReader)
((FLACReader)audioSource).UpdateTags();
((FLACReader)audioSource).UpdateTags (true);
#endif
audioSource.Close();
audioSource = null;
@@ -1537,7 +1537,7 @@ namespace CUEToolsLib
NameValueCollection tags = audioSource.Tags;
CleanupTags(tags, "ACCURATERIP");
GenerateAccurateRipTags (tags, 0, bestOffset, iTrack);
((FLACReader)audioSource).UpdateTags();
((FLACReader)audioSource).UpdateTags(true);
}
#endif
audioSource.Close();