2011-09-01, 20:40
sdsnyr94 Wrote:What if you delayed playback for 30 seconds or so, basically building up a buffer? Would the playback then be able to handle a couple of hiccups through the course of the game?
I haven't taken the time to really test this in eden, but with dharma I could totally loose my internet connection and everything would kind of pause and as soon as it came back up it would start playing again. This happens to me a lot, internet drops for a few seconds up to maybe 30 seconds then comes back up:mad:.
I don't think you can delay playback per se but you can set a buffer when opening the pipe.
Code:
Popen(target, shell=True, bufsize=-1).stdin
Quote:bufsize, if given, has the same meaning as the corresponding argument to the built-in open() function: 0 means unbuffered, 1 means line buffered, any other positive value means use a buffer of (approximately) that size. A negative bufsize means to use the system default, which usually means fully buffered. The default value for bufsize is 0 (unbuffered).
Note:
If you experience performance issues, it is recommended that you try to enable buffering by setting bufsize to either -1 or a large enough positive value (such as 4096).
I couldn't really tell a difference between 0 & -1 , but if you guys want to play around with it let me know what you figure out.