Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
a22323f2
Commit
a22323f2
authored
Sep 12, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DirectSound: fix setting the default channel in surround cases
parent
f332caaf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
10 deletions
+18
-10
modules/audio_output/directx.c
modules/audio_output/directx.c
+2
-0
modules/audio_output/windows_audio_common.h
modules/audio_output/windows_audio_common.h
+16
-10
No files found.
modules/audio_output/directx.c
View file @
a22323f2
...
...
@@ -487,10 +487,12 @@ static void Probe( audio_output_t * p_aout )
switch
(
DSSPEAKER_CONFIG
(
ui_speaker_config
)
)
{
case
DSSPEAKER_7POINT1
:
case
DSSPEAKER_7POINT1_SURROUND
:
msg_Dbg
(
p_aout
,
"Windows says your SpeakerConfig is 7.1"
);
val
.
i_int
=
AOUT_VAR_7_1
;
break
;
case
DSSPEAKER_5POINT1
:
case
DSSPEAKER_5POINT1_SURROUND
:
msg_Dbg
(
p_aout
,
"Windows says your SpeakerConfig is 5.1"
);
val
.
i_int
=
AOUT_VAR_5_1
;
break
;
...
...
modules/audio_output/windows_audio_common.h
View file @
a22323f2
...
...
@@ -96,34 +96,40 @@ typedef struct {
#endif
#ifndef DSSPEAKER_DSSPEAKER_DIRECTOUT
# define DSSPEAKER_DSSPEAKER_DIRECTOUT
0x00000000
# define DSSPEAKER_DSSPEAKER_DIRECTOUT 0x00000000
#endif
#ifndef DSSPEAKER_HEADPHONE
# define DSSPEAKER_HEADPHONE 0x00000001
# define DSSPEAKER_HEADPHONE
0x00000001
#endif
#ifndef DSSPEAKER_MONO
# define DSSPEAKER_MONO 0x00000002
# define DSSPEAKER_MONO
0x00000002
#endif
#ifndef DSSPEAKER_QUAD
# define DSSPEAKER_QUAD 0x00000003
# define DSSPEAKER_QUAD
0x00000003
#endif
#ifndef DSSPEAKER_STEREO
# define DSSPEAKER_STEREO 0x00000004
# define DSSPEAKER_STEREO
0x00000004
#endif
#ifndef DSSPEAKER_SURROUND
# define DSSPEAKER_SURROUND 0x00000005
# define DSSPEAKER_SURROUND
0x00000005
#endif
#ifndef DSSPEAKER_5POINT1
# define DSSPEAKER_5POINT1 0x00000006
# define DSSPEAKER_5POINT1 0x00000006
#endif
#ifndef DSSPEAKER_5POINT1_BACK
# define DSSPEAKER_5POINT1_BACK DSSPEAKER_5POINT1
#endif
#ifndef DSSPEAKER_7POINT1
# define DSSPEAKER_7POINT1 0x00000007
# define DSSPEAKER_7POINT1
0x00000007
#endif
#ifndef DSSPEAKER_7POINT1_SURROUND
# define DSSPEAKER_7POINT1_SURROUND 0x00000008
# define DSSPEAKER_7POINT1_SURROUND 0x00000008
#endif
#ifndef DSSPEAKER_5POINT1_SURROUND
# define DSSPEAKER_5POINT1_SURROUND 0x00000009
#endif
#ifndef DSSPEAKER_7POINT1_WIDE
# define DSSPEAKER_7POINT1_WIDE
DSSPEAKER_7POINT1
# define DSSPEAKER_7POINT1_WIDE DSSPEAKER_7POINT1
#endif
static
const
uint32_t
pi_channels_in
[]
=
...
...
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