Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
e97b748b
Commit
e97b748b
authored
Aug 18, 2004
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alsa.c: support mono on stereo only boards
parent
4b5259f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
modules/audio_output/alsa.c
modules/audio_output/alsa.c
+15
-0
No files found.
modules/audio_output/alsa.c
View file @
e97b748b
...
...
@@ -198,6 +198,21 @@ static void Probe( aout_instance_t * p_aout,
--
i_channels
;
}
/* Special case for mono on stereo only boards */
i_channels
=
aout_FormatNbChannels
(
&
p_aout
->
output
.
output
);
var_Change
(
p_aout
,
"audio-device"
,
VLC_VAR_CHOICESCOUNT
,
&
val
,
NULL
);
if
(
val
.
i_int
<=
0
&&
i_channels
==
1
)
{
if
(
!
snd_pcm_hw_params_test_channels
(
p_sys
->
p_snd_pcm
,
p_hw
,
2
))
{
val
.
i_int
=
AOUT_VAR_STEREO
;
text
.
psz_string
=
N_
(
"Stereo"
);
var_Change
(
p_aout
,
"audio-device"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
var_Set
(
p_aout
,
"audio-device"
,
val
);
}
}
/* Close the previously opened device */
snd_pcm_close
(
p_sys
->
p_snd_pcm
);
}
...
...
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