Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
344713d0
Commit
344713d0
authored
Nov 21, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PulseAudio: try to keep all resampling on VLC side
This reduces overall CPU consumption.
parent
c765fb8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
modules/audio_output/pulse.c
modules/audio_output/pulse.c
+6
-2
No files found.
modules/audio_output/pulse.c
View file @
344713d0
...
...
@@ -779,7 +779,7 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt)
|
PA_STREAM_INTERPOLATE_TIMING
|
PA_STREAM_NOT_MONOTONIC
|
PA_STREAM_AUTO_TIMING_UPDATE
/*| PA_STREAM_FIX_RATE*/
;
|
PA_STREAM_FIX_RATE
;
struct
pa_buffer_attr
attr
;
attr
.
maxlength
=
-
1
;
...
...
@@ -867,6 +867,7 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt)
goto
fail
;
}
const
struct
pa_sample_spec
*
spec
=
pa_stream_get_sample_spec
(
s
);
#if PA_CHECK_VERSION(1,0,0)
if
(
encoding
!=
PA_ENCODING_INVALID
)
{
const
pa_format_info
*
info
=
pa_stream_get_format_info
(
s
);
...
...
@@ -877,10 +878,13 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt)
fmt
->
i_format
=
HAVE_FPU
?
VLC_CODEC_FL32
:
VLC_CODEC_S16N
;
}
else
{
msg_Dbg
(
aout
,
"digital pass-through enabled"
);
pa_stream_set_latency_update_callback
(
s
,
NULL
,
NULL
)
;
spec
=
NULL
;
}
}
#endif
if
(
spec
!=
NULL
)
fmt
->
i_rate
=
spec
->
rate
;
stream_buffer_attr_cb
(
s
,
aout
);
var_AddCallback
(
aout
,
"audio-device"
,
StreamMove
,
s
);
stream_moved_cb
(
s
,
aout
);
...
...
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