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
31b94221
Commit
31b94221
authored
Jan 20, 2008
by
Dennis van Amerongen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/audio_output/alsa.c: backport [24390] fix for 5.1 audio on ALSA (broken pipe)
parent
798b3fbd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
13 deletions
+17
-13
NEWS
NEWS
+3
-0
THANKS
THANKS
+1
-0
modules/audio_output/alsa.c
modules/audio_output/alsa.c
+13
-13
No files found.
NEWS
View file @
31b94221
...
@@ -16,6 +16,9 @@ Security updates:
...
@@ -16,6 +16,9 @@ Security updates:
Audio filter:
Audio filter:
* Fixed DTS to S/PDIF converter
* Fixed DTS to S/PDIF converter
Audio output:
* Fixed 5.1 audio on ALSA
Encoders:
Encoders:
* Improved compatibility for creating H.264 video playable on iPhones
* Improved compatibility for creating H.264 video playable on iPhones
...
...
THANKS
View file @
31b94221
...
@@ -114,6 +114,7 @@ Matej Urbančič <matej.urban at gmail.com> - Slovenian translation
...
@@ -114,6 +114,7 @@ Matej Urbančič <matej.urban at gmail.com> - Slovenian translation
Mathias C. Berens | welcome-soft <berens at welcome-soft.de> - German translation
Mathias C. Berens | welcome-soft <berens at welcome-soft.de> - German translation
Mathias Kretschmer <mathias at research.att.com> - IP Multicast support
Mathias Kretschmer <mathias at research.att.com> - IP Multicast support
Mats Rojestal <mats.rojestal at bredband dot net> - compilation fixes for Solaris 9
Mats Rojestal <mats.rojestal at bredband dot net> - compilation fixes for Solaris 9
Matthias P. Nowak <mpnowak at broadpark dot no> - ALSA 5.1 fix
Matthieu Lochegnies <lochegm1 at cti.ecp.fr> - MPEG audio emphasis fix
Matthieu Lochegnies <lochegm1 at cti.ecp.fr> - MPEG audio emphasis fix
Max Rudberg <max_08 at mac.com> - Mac OS X controller art (v0.7.0)
Max Rudberg <max_08 at mac.com> - Mac OS X controller art (v0.7.0)
Michael Mondragon <mammon at lokmail.net> - ncurses compilation fix
Michael Mondragon <mammon at lokmail.net> - ncurses compilation fix
...
...
modules/audio_output/alsa.c
View file @
31b94221
...
@@ -571,34 +571,34 @@ static int Open( vlc_object_t *p_this )
...
@@ -571,34 +571,34 @@ static int Open( vlc_object_t *p_this )
p_aout
->
output
.
output
.
i_rate
);
p_aout
->
output
.
output
.
i_rate
);
}
}
/* Set
buffer
size. */
/* Set
period
size. */
#ifdef HAVE_ALSA_NEW_API
#ifdef HAVE_ALSA_NEW_API
if
(
(
i_snd_rc
=
snd_pcm_hw_params_set_
buffer
_size_near
(
p_sys
->
p_snd_pcm
,
if
(
(
i_snd_rc
=
snd_pcm_hw_params_set_
period
_size_near
(
p_sys
->
p_snd_pcm
,
p_hw
,
&
i_
buffer_size
)
)
<
0
)
p_hw
,
&
i_
period_size
,
NULL
)
)
<
0
)
#else
#else
if
(
(
i_snd_rc
=
snd_pcm_hw_params_set_
buffer
_size_near
(
p_sys
->
p_snd_pcm
,
if
(
(
i_snd_rc
=
snd_pcm_hw_params_set_
period
_size_near
(
p_sys
->
p_snd_pcm
,
p_hw
,
i_
buffer_size
)
)
<
0
)
p_hw
,
i_
period_size
,
NULL
)
)
<
0
)
#endif
#endif
{
{
msg_Err
(
p_aout
,
"unable to set
buffer
size (%s)"
,
msg_Err
(
p_aout
,
"unable to set
period
size (%s)"
,
snd_strerror
(
i_snd_rc
)
);
snd_strerror
(
i_snd_rc
)
);
goto
error
;
goto
error
;
}
}
p_aout
->
output
.
i_nb_samples
=
i_period_size
;
/* Set period
size. */
/* Set buffer
size. */
#ifdef HAVE_ALSA_NEW_API
#ifdef HAVE_ALSA_NEW_API
if
(
(
i_snd_rc
=
snd_pcm_hw_params_set_
period
_size_near
(
p_sys
->
p_snd_pcm
,
if
(
(
i_snd_rc
=
snd_pcm_hw_params_set_
buffer
_size_near
(
p_sys
->
p_snd_pcm
,
p_hw
,
&
i_
period_size
,
NULL
)
)
<
0
)
p_hw
,
&
i_
buffer_size
)
)
<
0
)
#else
#else
if
(
(
i_snd_rc
=
snd_pcm_hw_params_set_
period
_size_near
(
p_sys
->
p_snd_pcm
,
if
(
(
i_snd_rc
=
snd_pcm_hw_params_set_
buffer
_size_near
(
p_sys
->
p_snd_pcm
,
p_hw
,
i_
period_size
,
NULL
)
)
<
0
)
p_hw
,
i_
buffer_size
)
)
<
0
)
#endif
#endif
{
{
msg_Err
(
p_aout
,
"unable to set
period
size (%s)"
,
msg_Err
(
p_aout
,
"unable to set
buffer
size (%s)"
,
snd_strerror
(
i_snd_rc
)
);
snd_strerror
(
i_snd_rc
)
);
goto
error
;
goto
error
;
}
}
p_aout
->
output
.
i_nb_samples
=
i_period_size
;
/* Commit hardware parameters. */
/* Commit hardware parameters. */
if
(
(
i_snd_rc
=
snd_pcm_hw_params
(
p_sys
->
p_snd_pcm
,
p_hw
)
)
<
0
)
if
(
(
i_snd_rc
=
snd_pcm_hw_params
(
p_sys
->
p_snd_pcm
,
p_hw
)
)
<
0
)
...
...
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