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
2ed221d3
Commit
2ed221d3
authored
Mar 27, 2015
by
Mark Harmstone
Committed by
Vitaly Lipatov
Jul 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Add EAX init and free stubs.
parent
9f53b7a8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
1 deletion
+33
-1
buffer.c
dlls/dsound/buffer.c
+4
-0
dsound_private.h
dlls/dsound/dsound_private.h
+2
-0
eax.c
dlls/dsound/eax.c
+27
-1
No files found.
dlls/dsound/buffer.c
View file @
2ed221d3
...
...
@@ -1153,6 +1153,8 @@ HRESULT secondarybuffer_create(DirectSoundDevice *device, const DSBUFFERDESC *ds
DSOUND_RecalcVolPan
(
&
(
dsb
->
volpan
));
InitializeSRWLock
(
&
dsb
->
lock
);
if
(
dsb
->
device
->
eax
.
using_eax
)
init_eax_buffer
(
dsb
);
/* register buffer */
err
=
DirectSoundDevice_AddBuffer
(
device
,
dsb
);
...
...
@@ -1194,6 +1196,8 @@ void secondarybuffer_destroy(IDirectSoundBufferImpl *This)
HeapFree
(
GetProcessHeap
(),
0
,
This
->
filters
);
}
free_eax_buffer
(
This
);
TRACE
(
"(%p) released
\n
"
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/dsound/dsound_private.h
View file @
2ed221d3
...
...
@@ -240,6 +240,8 @@ HRESULT WINAPI EAX_Get(IDirectSoundBufferImpl *buf, REFGUID guidPropSet,
HRESULT
WINAPI
EAX_Set
(
IDirectSoundBufferImpl
*
buf
,
REFGUID
guidPropSet
,
ULONG
dwPropID
,
void
*
pInstanceData
,
ULONG
cbInstanceData
,
void
*
pPropData
,
ULONG
cbPropData
)
DECLSPEC_HIDDEN
;
void
free_eax_buffer
(
IDirectSoundBufferImpl
*
dsb
)
DECLSPEC_HIDDEN
;
void
init_eax_buffer
(
IDirectSoundBufferImpl
*
dsb
)
DECLSPEC_HIDDEN
;
/* mixer.c */
void
DSOUND_CheckEvent
(
const
IDirectSoundBufferImpl
*
dsb
,
DWORD
playpos
,
int
len
)
DECLSPEC_HIDDEN
;
...
...
dlls/dsound/eax.c
View file @
2ed221d3
...
...
@@ -92,20 +92,46 @@ 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
BOOL
ReverbDeviceUpdate
(
DirectSoundDevice
*
dev
)
static
void
ReverbUpdate
(
IDirectSoundBufferImpl
*
dsb
)
{
/* stub */
}
static
BOOL
ReverbDeviceUpdate
(
DirectSoundDevice
*
dev
)
{
int
i
;
for
(
i
=
0
;
i
<
dev
->
nrofbuffers
;
i
++
)
{
ReverbUpdate
(
dev
->
buffers
[
i
]);
}
return
TRUE
;
}
void
init_eax_buffer
(
IDirectSoundBufferImpl
*
dsb
)
{
ReverbUpdate
(
dsb
);
}
static
void
init_eax
(
DirectSoundDevice
*
dev
)
{
int
i
;
dev
->
eax
.
using_eax
=
TRUE
;
dev
->
eax
.
environment
=
presets
[
0
].
environment
;
dev
->
eax
.
volume
=
presets
[
0
].
fVolume
;
dev
->
eax
.
damping
=
presets
[
0
].
fDamping
;
memcpy
(
&
dev
->
eax
.
eax_props
,
&
efx_presets
[
0
],
sizeof
(
dev
->
eax
.
eax_props
));
dev
->
eax
.
eax_props
.
flDecayTime
=
presets
[
0
].
fDecayTime_sec
;
for
(
i
=
0
;
i
<
dev
->
nrofbuffers
;
i
++
)
{
init_eax_buffer
(
dev
->
buffers
[
i
]);
}
}
void
free_eax_buffer
(
IDirectSoundBufferImpl
*
dsb
)
{
/* stub */
}
HRESULT
WINAPI
EAX_Get
(
IDirectSoundBufferImpl
*
buf
,
REFGUID
guidPropSet
,
...
...
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