Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
9394b1be
Commit
9394b1be
authored
Nov 05, 2004
by
gbazin
Browse files
* modules/audio_output/waveout.c,directx.c: fixed audio channel ordering.
parent
5344ba81
Changes
2
Show whitespace changes
Inline
Side-by-side
modules/audio_output/directx.c
View file @
9394b1be
...
...
@@ -673,10 +673,10 @@ static int CreateDSBuffer( aout_instance_t *p_aout, int i_format,
/* First set the sound buffer format */
waveformat
.
dwChannelMask
=
0
;
for
(
i
=
0
;
i
<
sizeof
(
pi_channels_
in
)
/
sizeof
(
uint32_t
);
i
++
)
for
(
i
=
0
;
i
<
sizeof
(
pi_channels_
src
)
/
sizeof
(
uint32_t
);
i
++
)
{
if
(
i_channels
&
pi_channels_
in
[
i
]
)
waveformat
.
dwChannelMask
|=
pi_channels_
out
[
i
];
if
(
i_channels
&
pi_channels_
src
[
i
]
)
waveformat
.
dwChannelMask
|=
pi_channels_
in
[
i
];
}
switch
(
i_format
)
...
...
modules/audio_output/waveout.c
View file @
9394b1be
...
...
@@ -494,10 +494,10 @@ static int OpenWaveOut( aout_instance_t *p_aout, int i_format,
#define waveformat p_aout->output.p_sys->waveformat
waveformat
.
dwChannelMask
=
0
;
for
(
i
=
0
;
i
<
sizeof
(
pi_channels_
in
)
/
sizeof
(
uint32_t
);
i
++
)
for
(
i
=
0
;
i
<
sizeof
(
pi_channels_
src
)
/
sizeof
(
uint32_t
);
i
++
)
{
if
(
i_channels
&
pi_channels_
in
[
i
]
)
waveformat
.
dwChannelMask
|=
pi_channels_
out
[
i
];
if
(
i_channels
&
pi_channels_
src
[
i
]
)
waveformat
.
dwChannelMask
|=
pi_channels_
in
[
i
];
}
switch
(
i_format
)
...
...
Write
Preview
Supports
Markdown
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