Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
4f3bc33f
Commit
4f3bc33f
authored
Dec 05, 2013
by
Andy Tather
Committed by
Jean-Baptiste Kempf
Dec 05, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DirectSound: fix SPDIF
Close #9522
parent
4fcfd847
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
modules/audio_output/directsound.c
modules/audio_output/directsound.c
+5
-1
No files found.
modules/audio_output/directsound.c
View file @
4f3bc33f
...
...
@@ -184,7 +184,7 @@ static int Start( audio_output_t *p_aout, audio_sample_format_t *restrict fmt )
if
(
AOUT_FMT_SPDIF
(
fmt
)
&&
var_InheritBool
(
p_aout
,
"spdif"
)
&&
CreateDSBuffer
(
p_aout
,
VLC_CODEC_SPDIFL
,
fmt
->
i_physical_channels
,
aout_FormatNbChannels
(
fmt
),
fmt
->
i_rate
,
tru
e
)
aout_FormatNbChannels
(
fmt
),
fmt
->
i_rate
,
fals
e
)
==
VLC_SUCCESS
)
{
msg_Dbg
(
p_aout
,
"using A/52 pass-through over S/PDIF"
);
...
...
@@ -580,6 +580,10 @@ static int CreateDSBuffer( audio_output_t *p_aout, int i_format,
dsbdesc
.
dwBufferBytes
=
DS_BUF_SIZE
;
/* buffer size */
dsbdesc
.
lpwfxFormat
=
(
WAVEFORMATEX
*
)
&
waveformat
;
/* CreateSoundBuffer doesn't allow volume control for non-PCM buffers */
if
(
i_format
==
VLC_CODEC_SPDIFL
)
dsbdesc
.
dwFlags
&=
~
DSBCAPS_CTRLVOLUME
;
if
FAILED
(
IDirectSound_CreateSoundBuffer
(
p_aout
->
sys
->
p_dsobject
,
&
dsbdesc
,
&
p_aout
->
sys
->
p_dsbuffer
,
NULL
)
)
...
...
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