Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
b2b8d4df
Commit
b2b8d4df
authored
Apr 17, 2006
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* jack.c: fixed non-stereo audio streams
parent
0d481c16
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
modules/audio_output/jack.c
modules/audio_output/jack.c
+3
-2
No files found.
modules/audio_output/jack.c
View file @
b2b8d4df
...
...
@@ -187,6 +187,7 @@ int Process( jack_nframes_t i_frames, void *p_arg )
jack_default_audio_sample_t
*
p_jack_buffer
;
unsigned
int
i
,
j
,
i_nb_samples
=
0
;
aout_instance_t
*
p_aout
=
(
aout_instance_t
*
)
p_arg
;
unsigned
int
i_nb_channels
=
p_aout
->
output
.
p_sys
->
i_channels
;
/* Get the next audio data buffer */
p_buffer
=
aout_FifoPop
(
p_aout
,
&
p_aout
->
output
.
fifo
);
...
...
@@ -196,7 +197,7 @@ int Process( jack_nframes_t i_frames, void *p_arg )
i_nb_samples
=
p_buffer
->
i_nb_samples
;
}
for
(
i
=
0
;
i
<
p_aout
->
output
.
p_sys
->
i
_channels
;
i
++
)
for
(
i
=
0
;
i
<
i_nb
_channels
;
i
++
)
{
/* Get an output buffer from JACK */
p_jack_buffer
=
jack_port_get_buffer
(
...
...
@@ -205,7 +206,7 @@ int Process( jack_nframes_t i_frames, void *p_arg )
/* Fill the buffer with audio data */
for
(
j
=
0
;
j
<
i_nb_samples
;
j
++
)
{
p_jack_buffer
[
j
]
=
((
float
*
)
p_buffer
->
p_buffer
)[
2
*
j
+
i
];
p_jack_buffer
[
j
]
=
((
float
*
)
p_buffer
->
p_buffer
)[
i_nb_channels
*
j
+
i
];
}
if
(
i_nb_samples
<
i_frames
)
{
...
...
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