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
4fcfd847
Commit
4fcfd847
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
Waveout: Fix SPDIF output
Ref #9522
parent
193af819
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
modules/audio_output/waveout.c
modules/audio_output/waveout.c
+6
-6
No files found.
modules/audio_output/waveout.c
View file @
4fcfd847
...
...
@@ -175,12 +175,6 @@ static int Start( audio_output_t *p_aout, audio_sample_format_t *restrict fmt )
/* Default behaviour is to use software gain */
p_aout
->
sys
->
b_soft
=
true
;
/*
check for configured audio device!
*/
fmt
->
i_format
=
var_InheritBool
(
p_aout
,
"waveout-float32"
)
?
VLC_CODEC_FL32:
VLC_CODEC_S16N
;
char
*
dev
=
var_GetNonEmptyString
(
p_aout
,
"waveout-audio-device"
);
uint32_t
devid
=
findDeviceID
(
dev
);
...
...
@@ -230,6 +224,12 @@ static int Start( audio_output_t *p_aout, audio_sample_format_t *restrict fmt )
if
(
fmt
->
i_format
!=
VLC_CODEC_SPDIFL
)
{
/*
check for configured audio device!
*/
fmt
->
i_format
=
var_InheritBool
(
p_aout
,
"waveout-float32"
)
?
VLC_CODEC_FL32:
VLC_CODEC_S16N
;
int
max_chan
=
var_InheritInteger
(
p_aout
,
"waveout-audio-channels"
);
int
i_channels
=
aout_FormatNbChannels
(
fmt
);
i_channels
=
(
i_channels
<
max_chan
)
?
i_channels
:
max_chan
;
...
...
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