Open WAV even if another program has it locked for writing (experimental fix).

This commit is contained in:
J.D. Purcell 2015-10-29 10:02:42 -04:00
parent 35317579ed
commit 41a8c83683

View File

@ -345,7 +345,7 @@ namespace Nikse.SubtitleEdit.Core
/// </summary>
/// <param name="fileName">Wave file name</param>
public WavePeakGenerator(string fileName)
: this(File.OpenRead(fileName))
: this(new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
{
}