Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aleksandr Isakov
wine-fonts
Commits
7d67aec4
Commit
7d67aec4
authored
Mar 22, 2015
by
Mark Harmstone
Committed by
Vitaly Lipatov
Jul 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Add EAX VerbPass stub.
parent
2c391de1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
1 deletion
+36
-1
eax.c
dlls/dsound/eax.c
+36
-1
No files found.
dlls/dsound/eax.c
View file @
7d67aec4
...
...
@@ -92,6 +92,14 @@ static const EFXEAXREVERBPROPERTIES efx_presets[] = {
{
0
.
0625
f
,
0
.
5000
f
,
0
.
3162
f
,
0
.
8404
f
,
1
.
0000
f
,
7
.
5600
f
,
0
.
9100
f
,
1
.
0000
f
,
0
.
4864
f
,
0
.
0200
f
,
{
0
.
0000
f
,
0
.
0000
f
,
0
.
0000
f
},
2
.
4378
f
,
0
.
0300
f
,
{
0
.
0000
f
,
0
.
0000
f
,
0
.
0000
f
},
0
.
2500
f
,
0
.
0000
f
,
4
.
0000
f
,
1
.
0000
f
,
0
.
9943
f
,
5000
.
0000
f
,
250
.
0000
f
,
0
.
0000
f
,
0x0
}
/* psychotic */
};
static
void
VerbPass
(
IDirectSoundBufferImpl
*
dsb
,
float
in
,
float
*
out
)
{
/* stub */
/* Step all delays forward one sample. */
dsb
->
eax
.
Offset
++
;
}
static
unsigned
int
fastf2u
(
float
f
)
{
return
(
unsigned
int
)
f
;
...
...
@@ -99,7 +107,34 @@ static unsigned int fastf2u(float f)
void
process_eax_buffer
(
IDirectSoundBufferImpl
*
dsb
,
float
*
buf
,
DWORD
count
)
{
/* stub */
int
i
;
float
*
out
;
float
gain
;
if
(
dsb
->
device
->
eax
.
volume
==
0
.
0
f
)
return
;
if
(
dsb
->
mix_channels
>
1
)
{
WARN
(
"EAX not yet supported for non-mono sources
\n
"
);
return
;
}
out
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
float
)
*
count
*
4
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
VerbPass
(
dsb
,
buf
[
i
],
&
out
[
i
*
4
]);
}
if
(
dsb
->
eax
.
reverb_mix
==
EAX_REVERBMIX_USEDISTANCE
)
gain
=
1
.
0
f
;
/* FIXME - should be calculated from distance */
else
gain
=
dsb
->
eax
.
reverb_mix
;
for
(
i
=
0
;
i
<
count
;
i
++
)
{
buf
[
i
]
+=
gain
*
out
[
i
*
4
];
}
HeapFree
(
GetProcessHeap
(),
0
,
out
);
}
static
unsigned
int
NextPowerOf2
(
unsigned
int
value
)
...
...
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