Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
ce370bee
Commit
ce370bee
authored
Feb 25, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/jack: rename variable sample_size to jack_sample_size
parent
2a1f4539
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
jack_plugin.c
src/output/jack_plugin.c
+6
-5
No files found.
src/output/jack_plugin.c
View file @
ce370bee
...
...
@@ -36,7 +36,7 @@
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "jack"
static
const
size_t
sample_size
=
sizeof
(
jack_default_audio_sample_t
);
static
const
size_t
jack_
sample_size
=
sizeof
(
jack_default_audio_sample_t
);
static
const
char
*
const
port_names
[
2
]
=
{
"left"
,
"right"
,
...
...
@@ -118,14 +118,15 @@ mpd_jack_process(jack_nframes_t nframes, void *arg)
for
(
unsigned
i
=
0
;
i
<
G_N_ELEMENTS
(
jd
->
ringbuffer
);
++
i
)
{
available
=
jack_ringbuffer_read_space
(
jd
->
ringbuffer
[
i
]);
assert
(
available
%
sample_size
==
0
);
available
/=
sample_size
;
assert
(
available
%
jack_
sample_size
==
0
);
available
/=
jack_
sample_size
;
if
(
available
>
nframes
)
available
=
nframes
;
out
=
jack_port_get_buffer
(
jd
->
ports
[
i
],
nframes
);
jack_ringbuffer_read
(
jd
->
ringbuffer
[
i
],
(
char
*
)
out
,
available
*
sample_size
);
(
char
*
)
out
,
available
*
jack_sample_size
);
while
(
available
<
nframes
)
/* ringbuffer underrun, fill with silence */
...
...
@@ -430,7 +431,7 @@ mpd_jack_play(void *data, const void *chunk, size_t size, GError **error)
g_usleep
(
1000
);
}
space
/=
sample_size
;
space
/=
jack_
sample_size
;
if
(
space
<
size
)
size
=
space
;
...
...
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