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
7aaf6355
Commit
7aaf6355
authored
Mar 09, 2011
by
R.M
Committed by
Ilkka Ollakka
Mar 09, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pulseaudio: increase buffer so some usb cards don't drop samples
Signed-off-by:
Ilkka Ollakka
<
ileoo@videolan.org
>
parent
e70d1f5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
modules/audio_output/pulse.c
modules/audio_output/pulse.c
+4
-3
No files found.
modules/audio_output/pulse.c
View file @
7aaf6355
...
...
@@ -183,14 +183,15 @@ static int Open ( vlc_object_t *p_this )
}
/* Reduce overall latency to 200mS to reduce audible clicks
* Also pulse minreq and internal buffers are now 20mS which reduces resampling
* Also pulse minreq and internal buffers are now 100mS which reduces resampling
* but still shouldn't drop samples with some usb sound cards
*/
a
.
tlength
=
pa_bytes_per_second
(
&
ss
)
/
5
;
a
.
maxlength
=
a
.
tlength
*
2
;
a
.
prebuf
=
a
.
tlength
/
2
;
a
.
minreq
=
a
.
tlength
/
10
;
a
.
minreq
=
a
.
tlength
/
2
;
/* Buffer size is
2
0mS */
/* Buffer size is
10
0mS */
p_sys
->
buffer_size
=
a
.
minreq
;
/* Initialise the speaker map setup above */
...
...
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