add new voice commands

This commit is contained in:
Luke Pulverenti 2015-08-01 17:17:46 -04:00
parent a7b25c065c
commit bd39a81ba2
4 changed files with 6 additions and 6 deletions

View File

@ -234,10 +234,10 @@ namespace MediaBrowser.Common.Implementations.IO
{
if (_supportsAsyncFileStreams && isAsync)
{
return new FileStream(path, mode, access, share, 4096, true);
return new FileStream(path, mode, access, share, StreamDefaults.DefaultFileStreamBufferSize, true);
}
return new FileStream(path, mode, access, share);
return new FileStream(path, mode, access, share, StreamDefaults.DefaultFileStreamBufferSize);
}
/// <summary>

View File

@ -61,7 +61,7 @@ namespace MediaBrowser.Common.Implementations.Serialization
private Stream OpenFile(string path)
{
return new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read);
return new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, 131072);
}
/// <summary>

View File

@ -9,11 +9,11 @@ namespace MediaBrowser.Common.IO
/// <summary>
/// The default copy to buffer size
/// </summary>
public const int DefaultCopyToBufferSize = 81920;
public const int DefaultCopyToBufferSize = 262144;
/// <summary>
/// The default file stream buffer size
/// </summary>
public const int DefaultFileStreamBufferSize = 4096;
public const int DefaultFileStreamBufferSize = 262144;
}
}

View File

@ -335,7 +335,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
/// <returns>Stream.</returns>
private Stream GetFileStream(string path, FileShare fileShare)
{
return _fileSystem.GetFileStream(path, FileMode.Open, FileAccess.Read, fileShare, true);
return _fileSystem.GetFileStream(path, FileMode.Open, FileAccess.Read, fileShare);
}
public object GetStaticResult(IRequest requestContext,