path: root/stream/stream.h
diff options
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-11-10 17:21:28 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-14 12:24:11 +0200
commit0792847d4aeca71c0e61d47a9734d192506f1249 (patch)
tree4c88895bc35b3a76d679e8901b16141ab5d4d68e /stream/stream.h
parentb2c09ad9a4c6df34a7ce5b5cffc134b36983093d (diff)
cache: read up to 64 KiB at once from stream_file
Make the file protocol read up to 64 KiB at once when the cache is used, assuming that files will generally be readable with high bandwidth. This should improve performance when playing e.g. from high-latency network shares. git-svn-id: svn:// b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/stream.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/stream/stream.h b/stream/stream.h
index 24a140d255..021296b247 100644
--- a/stream/stream.h
+++ b/stream/stream.h
@@ -155,6 +155,7 @@ typedef struct stream {
int type; // see STREAMTYPE_*
int flags;
int sector_size; // sector size (seek will be aligned on this size if non 0)
+ int read_chunk; // maximum amount of data to read at once to limit latency (0 for default)
unsigned int buf_pos,buf_len;
off_t pos,start_pos,end_pos;
int eof;