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
56d05a40
Commit
56d05a40
authored
Dec 04, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PulseAudio: Support for 7.1 and use accept 32-bits float as input, patch by Danny Wood.
Cosmetic on the file too.
parent
0c028c29
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
11 deletions
+20
-11
modules/audio_output/pulse.c
modules/audio_output/pulse.c
+20
-11
No files found.
modules/audio_output/pulse.c
View file @
56d05a40
...
...
@@ -76,6 +76,7 @@ if (!p_sys->context || pa_context_get_state(p_sys->context) != PA_CONTEXT_READY
goto label; \
} \
} while(0);
/*****************************************************************************
* Local prototypes
*****************************************************************************/
...
...
@@ -89,6 +90,7 @@ static void stream_request_cb(pa_stream *s, size_t length, void *userdata);
static
void
stream_latency_update_cb
(
pa_stream
*
s
,
void
*
userdata
);
static
void
success_cb
(
pa_stream
*
s
,
int
sucess
,
void
*
userdata
);
static
void
uninit
(
aout_instance_t
*
p_aout
);
/*****************************************************************************
* Module descriptor
*****************************************************************************/
...
...
@@ -128,6 +130,13 @@ static int Open ( vlc_object_t *p_this )
/* Setup the pulse audio stream based on the input stream count */
switch
(
ss
.
channels
)
{
case
8
:
p_aout
->
output
.
output
.
i_physical_channels
=
AOUT_CHAN_LEFT
|
AOUT_CHAN_RIGHT
|
AOUT_CHAN_CENTER
|
AOUT_CHAN_MIDDLELEFT
|
AOUT_CHAN_MIDDLERIGHT
|
AOUT_CHAN_REARLEFT
|
AOUT_CHAN_REARRIGHT
|
AOUT_CHAN_LFE
;
break
;
case
6
:
p_aout
->
output
.
output
.
i_physical_channels
=
AOUT_CHAN_LEFT
|
AOUT_CHAN_RIGHT
|
AOUT_CHAN_CENTER
...
...
@@ -159,8 +168,8 @@ static int Open ( vlc_object_t *p_this )
msg_Info
(
p_aout
,
"No. of Audio Channels: %d"
,
ss
.
channels
);
ss
.
rate
=
p_aout
->
output
.
output
.
i_rate
;
ss
.
format
=
PA_SAMPLE_
S16L
E
;
p_aout
->
output
.
output
.
i_format
=
AOUT_FMT_S16_NE
;
ss
.
format
=
PA_SAMPLE_
FLOAT32N
E
;
p_aout
->
output
.
output
.
i_format
=
VLC_FOURCC
(
'f'
,
'l'
,
'3'
,
'2'
)
;
if
(
!
pa_sample_spec_valid
(
&
ss
))
{
msg_Err
(
p_aout
,
"Invalid sample spec"
);
...
...
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