summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 367241f)
raw | patch | inline | side by side (parent: 367241f)
author | fgsfds <pvt.fgsfds@gmail.com> | |
Thu, 12 Mar 2020 19:14:57 +0000 (22:14 +0300) | ||
committer | fgsfds <pvt.fgsfds@gmail.com> | |
Thu, 12 Mar 2020 19:14:57 +0000 (22:14 +0300) |
src/engine/e_sound_al.inc | patch | blob | history |
index ac64ad41d7f8e2d6d83ce7a5c92070270c80d671..d3ee161d8c3e099aaa24ae52793b2078a93343be 100644 (file)
StreamThread: TThreadID = NilThreadId;
StreamThreadRunning: Boolean = False;
StreamLock: TRTLCriticalSection;
- StreamBufTime: Integer = 100; // time to sleep between buffer checks
+ StreamBufTime: Integer = 10; // time to sleep between buffer checks
procedure UpdateStreamSource(Src: Integer); forward;
(STREAM_BUFSIZE div (2 * e_SoundsArray[ID].Loader.Format.SampleBits div 8)) div
(e_SoundsArray[ID].Loader.Format.SampleRate div 1000) - 1;
if StreamBufTime < 1 then StreamBufTime := 1;
- e_LogWritefln('sleep time = %d', [StreamBufTime]);
{$ENDIF}
// reset position
e_SoundsArray[ID].Loader.Restart();