Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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
wine
wine-winehq
Commits
3cf9f845
Commit
3cf9f845
authored
Jan 09, 2007
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Remove stray '\' at end of lines.
parent
d7fe9585
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
sound3d.c
dlls/dsound/sound3d.c
+6
-6
propset.c
dlls/dsound/tests/propset.c
+6
-6
No files found.
dlls/dsound/sound3d.c
View file @
3cf9f845
...
...
@@ -70,7 +70,7 @@ static inline D3DVALUE ScalarProduct (LPD3DVECTOR a, LPD3DVECTOR b)
{
D3DVALUE
c
;
c
=
(
a
->
x
*
b
->
x
)
+
(
a
->
y
*
b
->
y
)
+
(
a
->
z
*
b
->
z
);
TRACE
(
"(%f,%f,%f) * (%f,%f,%f) = %f)
\n
"
,
a
->
x
,
a
->
y
,
a
->
z
,
b
->
x
,
b
->
y
,
\
TRACE
(
"(%f,%f,%f) * (%f,%f,%f) = %f)
\n
"
,
a
->
x
,
a
->
y
,
a
->
z
,
b
->
x
,
b
->
y
,
b
->
z
,
c
);
return
c
;
}
...
...
@@ -82,7 +82,7 @@ static inline D3DVECTOR VectorProduct (LPD3DVECTOR a, LPD3DVECTOR b)
c
.
x
=
(
a
->
y
*
b
->
z
)
-
(
a
->
z
*
b
->
y
);
c
.
y
=
(
a
->
z
*
b
->
x
)
-
(
a
->
x
*
b
->
z
);
c
.
z
=
(
a
->
x
*
b
->
y
)
-
(
a
->
y
*
b
->
x
);
TRACE
(
"(%f,%f,%f) x (%f,%f,%f) = (%f,%f,%f)
\n
"
,
a
->
x
,
a
->
y
,
a
->
z
,
b
->
x
,
b
->
y
,
\
TRACE
(
"(%f,%f,%f) x (%f,%f,%f) = (%f,%f,%f)
\n
"
,
a
->
x
,
a
->
y
,
a
->
z
,
b
->
x
,
b
->
y
,
b
->
z
,
c
.
x
,
c
.
y
,
c
.
z
);
return
c
;
}
...
...
@@ -304,7 +304,7 @@ void DSOUND_Calc3DBuffer(IDirectSoundBufferImpl *dsb)
/* formula taken from Gianicoli D.: Physics, 4th edition: */
/* FIXME: replace dsb->freq with appropriate frequency ! */
flFreq = dsb->freq * ((DEFAULT_VELOCITY + flListenerVel)/(DEFAULT_VELOCITY + flBufferVel));
TRACE("doppler: Buffer velocity (component) = %lf, Listener velocity (component) = %lf => Doppler shift: %ld Hz -> %lf Hz\n", flBufferVel, flListenerVel,
\
TRACE("doppler: Buffer velocity (component) = %lf, Listener velocity (component) = %lf => Doppler shift: %ld Hz -> %lf Hz\n", flBufferVel, flListenerVel,
dsb->freq, flFreq);
/* FIXME: replace following line with correct frequency setting ! */
dsb->freq = flFreq;
...
...
@@ -860,8 +860,8 @@ static HRESULT WINAPI IDirectSound3DListenerImpl_GetOrientation(
LPD3DVECTOR
lpvOrientTop
)
{
IDirectSound3DListenerImpl
*
This
=
(
IDirectSound3DListenerImpl
*
)
iface
;
TRACE
(
"returning: OrientFront vector = (%f,%f,%f); OrientTop vector = (%f,%f,%f)
\n
"
,
This
->
device
->
ds3dl
.
vOrientFront
.
x
,
\
This
->
device
->
ds3dl
.
vOrientFront
.
y
,
This
->
device
->
ds3dl
.
vOrientFront
.
z
,
This
->
device
->
ds3dl
.
vOrientTop
.
x
,
This
->
device
->
ds3dl
.
vOrientTop
.
y
,
\
TRACE
(
"returning: OrientFront vector = (%f,%f,%f); OrientTop vector = (%f,%f,%f)
\n
"
,
This
->
device
->
ds3dl
.
vOrientFront
.
x
,
This
->
device
->
ds3dl
.
vOrientFront
.
y
,
This
->
device
->
ds3dl
.
vOrientFront
.
z
,
This
->
device
->
ds3dl
.
vOrientTop
.
x
,
This
->
device
->
ds3dl
.
vOrientTop
.
y
,
This
->
device
->
ds3dl
.
vOrientTop
.
z
);
*
lpvOrientFront
=
This
->
device
->
ds3dl
.
vOrientFront
;
*
lpvOrientTop
=
This
->
device
->
ds3dl
.
vOrientTop
;
...
...
@@ -956,7 +956,7 @@ static HRESULT WINAPI IDirectSound3DListenerImpl_SetOrientation(
DWORD
dwApply
)
{
IDirectSound3DListenerImpl
*
This
=
(
IDirectSound3DListenerImpl
*
)
iface
;
TRACE
(
"setting: Front vector = (%f,%f,%f); Top vector = (%f,%f,%f); dwApply = %d
\n
"
,
\
TRACE
(
"setting: Front vector = (%f,%f,%f); Top vector = (%f,%f,%f); dwApply = %d
\n
"
,
xFront
,
yFront
,
zFront
,
xTop
,
yTop
,
zTop
,
dwApply
);
This
->
device
->
ds3dl
.
vOrientFront
.
x
=
xFront
;
This
->
device
->
ds3dl
.
vOrientFront
.
y
=
yFront
;
...
...
dlls/dsound/tests/propset.c
View file @
3cf9f845
...
...
@@ -36,17 +36,17 @@
#include "initguid.h"
DEFINE_GUID
(
DSPROPSETID_VoiceManager
,
\
DEFINE_GUID
(
DSPROPSETID_VoiceManager
,
0x62A69BAE
,
0xDF9D
,
0x11D1
,
0x99
,
0xA6
,
0x00
,
0xC0
,
0x4F
,
0xC9
,
0x9D
,
0x46
);
DEFINE_GUID
(
DSPROPSETID_EAX20_ListenerProperties
,
\
DEFINE_GUID
(
DSPROPSETID_EAX20_ListenerProperties
,
0x306a6a8
,
0xb224
,
0x11d2
,
0x99
,
0xe5
,
0x0
,
0x0
,
0xe8
,
0xd8
,
0xc7
,
0x22
);
DEFINE_GUID
(
DSPROPSETID_EAX20_BufferProperties
,
\
DEFINE_GUID
(
DSPROPSETID_EAX20_BufferProperties
,
0x306a6a7
,
0xb224
,
0x11d2
,
0x99
,
0xe5
,
0x0
,
0x0
,
0xe8
,
0xd8
,
0xc7
,
0x22
);
DEFINE_GUID
(
DSPROPSETID_I3DL2_ListenerProperties
,
\
DEFINE_GUID
(
DSPROPSETID_I3DL2_ListenerProperties
,
0xDA0F0520
,
0x300A
,
0x11D3
,
0x8A
,
0x2B
,
0x00
,
0x60
,
0x97
,
0x0D
,
0xB0
,
0x11
);
DEFINE_GUID
(
DSPROPSETID_I3DL2_BufferProperties
,
\
DEFINE_GUID
(
DSPROPSETID_I3DL2_BufferProperties
,
0xDA0F0521
,
0x300A
,
0x11D3
,
0x8A
,
0x2B
,
0x00
,
0x60
,
0x97
,
0x0D
,
0xB0
,
0x11
);
DEFINE_GUID
(
DSPROPSETID_ZOOMFX_BufferProperties
,
\
DEFINE_GUID
(
DSPROPSETID_ZOOMFX_BufferProperties
,
0xCD5368E0
,
0x3450
,
0x11D3
,
0x8B
,
0x6E
,
0x00
,
0x10
,
0x5A
,
0x9B
,
0x7B
,
0xBC
);
typedef
HRESULT
(
CALLBACK
*
MYPROC
)(
REFCLSID
,
REFIID
,
LPVOID
*
);
...
...
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