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
e19f0a8d
Commit
e19f0a8d
authored
Oct 24, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jack: added assertions against partial frames
We must never pass partial frames. Added assertions to debug this.
parent
e7cd2376
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
audioOutput_jack.c
src/audioOutputs/audioOutput_jack.c
+2
-0
No files found.
src/audioOutputs/audioOutput_jack.c
View file @
e19f0a8d
...
...
@@ -132,6 +132,7 @@ static int process(jack_nframes_t nframes, void *arg)
for
(
unsigned
i
=
0
;
i
<
2
;
++
i
)
{
available
=
jack_ringbuffer_read_space
(
jd
->
ringbuffer
[
i
]);
assert
(
available
%
sample_size
==
0
);
available
/=
sample_size
;
if
(
available
>
nframes
)
available
=
nframes
;
...
...
@@ -368,6 +369,7 @@ static int jack_playAudio(void *data,
return
0
;
}
assert
(
size
%
frame_size
==
0
);
size
/=
frame_size
;
while
(
size
>
0
&&
!
jd
->
shutdown
)
{
space
=
jack_ringbuffer_write_space
(
jd
->
ringbuffer
[
0
]);
...
...
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