Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
tyrquake
Commits
07950202
Commit
07950202
authored
Oct 14, 2019
by
Libretro-Admin
Browse files
Revert "Reduce snd_mixahead to 0.08 - should be lower latency and higher"
This reverts commit
468a9a9b
.
parent
468a9a9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/snd_dma.c
View file @
07950202
...
...
@@ -90,8 +90,7 @@ static cvar_t precache = { "precache", "1" };
static
cvar_t
ambient_level
=
{
"ambient_level"
,
"0.3"
};
static
cvar_t
ambient_fade
=
{
"ambient_fade"
,
"100"
};
static
cvar_t
snd_noextraupdate
=
{
"snd_noextraupdate"
,
"0"
};
#define SND_MIXAHEAD 0.08
static
cvar_t
_snd_mixahead
=
{
"_snd_mixahead"
,
"0.1"
,
true
};
/*
* User-setable variables
...
...
@@ -178,6 +177,7 @@ S_Init(void)
Cvar_RegisterVariable
(
&
ambient_level
);
Cvar_RegisterVariable
(
&
ambient_fade
);
Cvar_RegisterVariable
(
&
snd_noextraupdate
);
Cvar_RegisterVariable
(
&
_snd_mixahead
);
snd_initialized
=
true
;
...
...
@@ -751,7 +751,7 @@ static void S_Update_(void)
paintedtime
=
soundtime
;
}
/* mix ahead of current position */
endtime
=
soundtime
+
SND_MIXAHEAD
*
shm
->
speed
;
endtime
=
soundtime
+
_snd_mixahead
.
value
*
shm
->
speed
;
samps
=
shm
->
samples
>>
1
;
if
(
endtime
-
soundtime
>
samps
)
endtime
=
soundtime
+
samps
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment