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
cf5313ad
Commit
cf5313ad
authored
Oct 08, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Negotiate input sample rate with PulseAudio
parent
dd432572
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/access/pulse.c
modules/access/pulse.c
+4
-4
No files found.
modules/access/pulse.c
View file @
cf5313ad
...
...
@@ -262,8 +262,8 @@ static int Open(vlc_object_t *obj)
const
pa_stream_flags_t
flags
=
PA_STREAM_INTERPOLATE_TIMING
|
PA_STREAM_AUTO_TIMING_UPDATE
|
PA_STREAM_FIX_FORMAT
/*
| PA_STREAM_FIX_RATE
| PA_STREAM_FIX_CHANNELS*/
;
|
PA_STREAM_FIX_RATE
/*
| PA_STREAM_FIX_CHANNELS*/
;
const
struct
pa_buffer_attr
attr
=
{
.
maxlength
=
-
1
,
.
fragsize
=
pa_usec_to_bytes
(
sys
->
caching
,
&
ss
)
/
2
,
...
...
@@ -313,10 +313,10 @@ static int Open(vlc_object_t *obj)
fmt
.
audio
.
i_physical_channels
=
fmt
.
audio
.
i_original_channels
=
AOUT_CHAN_LEFT
|
AOUT_CHAN_RIGHT
;
fmt
.
audio
.
i_channels
=
ss
.
channels
;
fmt
.
audio
.
i_rate
=
ss
.
rate
;
fmt
.
audio
.
i_rate
=
pss
->
rate
;
fmt
.
audio
.
i_bitspersample
=
aout_BitsPerSample
(
format
);
fmt
.
audio
.
i_blockalign
=
fmt
.
audio
.
i_bitspersample
*
ss
.
channels
/
8
;
fmt
.
i_bitrate
=
fmt
.
audio
.
i_bitspersample
*
ss
.
channels
*
ss
.
rate
;
fmt
.
i_bitrate
=
fmt
.
audio
.
i_bitspersample
*
ss
.
channels
*
pss
->
rate
;
sys
->
framesize
=
fmt
.
audio
.
i_blockalign
;
sys
->
es
=
es_out_Add
(
demux
->
out
,
&
fmt
);
...
...
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