Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
999423d3
Commit
999423d3
authored
Sep 24, 2011
by
Jörg Höhle
Committed by
Alexandre Julliard
Jan 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Vista/XP SP2 reworked the Speaker Configuration.
parent
33c7a865
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
4 deletions
+11
-4
dsound.c
dlls/dsound/dsound.c
+1
-1
mmdevdrv.c
dlls/winealsa.drv/mmdevdrv.c
+1
-1
mmdevdrv.c
dlls/winecoreaudio.drv/mmdevdrv.c
+1
-1
mmdevdrv.c
dlls/wineoss.drv/mmdevdrv.c
+1
-1
dsound.h
include/dsound.h
+5
-0
ksmedia.h
include/ksmedia.h
+2
-0
No files found.
dlls/dsound/dsound.c
View file @
999423d3
...
...
@@ -1172,7 +1172,7 @@ static HRESULT DirectSoundDevice_Create(DirectSoundDevice ** ppDevice)
device
->
ref
=
1
;
device
->
priolevel
=
DSSCL_NORMAL
;
device
->
state
=
STATE_STOPPED
;
device
->
speaker_config
=
DSSPEAKER_
STEREO
|
(
DSSPEAKER_GEOMETRY_NARROW
<<
16
);
device
->
speaker_config
=
DSSPEAKER_
COMBINED
(
DSSPEAKER_STEREO
,
DSSPEAKER_GEOMETRY_WIDE
);
/* 3D listener initial parameters */
device
->
ds3dl
.
dwSize
=
sizeof
(
DS3DLISTENER
);
...
...
dlls/winealsa.drv/mmdevdrv.c
View file @
999423d3
...
...
@@ -1206,7 +1206,7 @@ static DWORD get_channel_mask(unsigned int channels)
case
7
:
return
KSAUDIO_SPEAKER_5POINT1
|
SPEAKER_BACK_CENTER
;
case
8
:
return
KSAUDIO_SPEAKER_7POINT1
;
/* not 7POINT1_SURROUND
*/
return
KSAUDIO_SPEAKER_7POINT1
_SURROUND
;
/* Vista deprecates 7POINT1
*/
}
FIXME
(
"Unknown speaker configuration: %u
\n
"
,
channels
);
return
0
;
...
...
dlls/winecoreaudio.drv/mmdevdrv.c
View file @
999423d3
...
...
@@ -700,7 +700,7 @@ static DWORD get_channel_mask(unsigned int channels)
case
7
:
return
KSAUDIO_SPEAKER_5POINT1
|
SPEAKER_BACK_CENTER
;
case
8
:
return
KSAUDIO_SPEAKER_7POINT1
;
/* not 7POINT1_SURROUND
*/
return
KSAUDIO_SPEAKER_7POINT1
_SURROUND
;
/* Vista deprecates 7POINT1
*/
}
FIXME
(
"Unknown speaker configuration: %u
\n
"
,
channels
);
return
0
;
...
...
dlls/wineoss.drv/mmdevdrv.c
View file @
999423d3
...
...
@@ -657,7 +657,7 @@ static DWORD get_channel_mask(unsigned int channels)
case
7
:
return
KSAUDIO_SPEAKER_5POINT1
|
SPEAKER_BACK_CENTER
;
case
8
:
return
KSAUDIO_SPEAKER_7POINT1
;
/* not 7POINT1_SURROUND
*/
return
KSAUDIO_SPEAKER_7POINT1
_SURROUND
;
/* Vista deprecates 7POINT1
*/
}
FIXME
(
"Unknown speaker configuration: %u
\n
"
,
channels
);
return
0
;
...
...
include/dsound.h
View file @
999423d3
...
...
@@ -301,13 +301,18 @@ typedef struct _DSBPOSITIONNOTIFY
}
DSBPOSITIONNOTIFY
,
*
LPDSBPOSITIONNOTIFY
;
typedef
const
DSBPOSITIONNOTIFY
*
LPCDSBPOSITIONNOTIFY
;
#define DSSPEAKER_DIRECTOUT 0
#define DSSPEAKER_HEADPHONE 1
#define DSSPEAKER_MONO 2
#define DSSPEAKER_QUAD 3
#define DSSPEAKER_STEREO 4
#define DSSPEAKER_SURROUND 5
#define DSSPEAKER_5POINT1 6
#define DSSPEAKER_5POINT1_BACK 6
#define DSSPEAKER_7POINT1 7
#define DSSPEAKER_7POINT1_WIDE 7
#define DSSPEAKER_7POINT1_SURROUND 8
#define DSSPEAKER_5POINT1_SURROUND 9
#define DSSPEAKER_GEOMETRY_MIN 0x00000005
/* 5 degrees */
#define DSSPEAKER_GEOMETRY_NARROW 0x0000000A
/* 10 degrees */
...
...
include/ksmedia.h
View file @
999423d3
...
...
@@ -34,8 +34,10 @@ DEFINE_GUID(KSDATAFORMAT_SUBTYPE_ALAW, 0x00000006, 0x0000, 0x0010, 0x80, 0x00, 0
#define KSAUDIO_SPEAKER_QUAD (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT)
#define KSAUDIO_SPEAKER_SURROUND (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_BACK_CENTER)
#define KSAUDIO_SPEAKER_5POINT1 (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT)
/* 5:1 SIDE or BACK is not distinguished, only 0x3F shall be used (BACK) */
#define KSAUDIO_SPEAKER_5POINT1_SURROUND (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | SPEAKER_SIDE_LEFT | SPEAKER_SIDE_RIGHT)
#define KSAUDIO_SPEAKER_7POINT1 (KSAUDIO_SPEAKER_5POINT1 | SPEAKER_FRONT_LEFT_OF_CENTER | SPEAKER_FRONT_RIGHT_OF_CENTER)
/* 7:1 home theater 0x63F */
#define KSAUDIO_SPEAKER_7POINT1_SURROUND (KSAUDIO_SPEAKER_5POINT1 | SPEAKER_SIDE_LEFT | SPEAKER_SIDE_RIGHT)
#ifndef REFERENCE_TIME_DEFINED
...
...
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