Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
fce23741
Commit
fce23741
authored
Jul 28, 2019
by
Adrien Béraud
Browse files
opensl: notify play on rec
Change-Id: I13aaf88a3109d601fe667f20ba454749858d7721
parent
8656ab33
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/media/audio/opensl/opensllayer.cpp
View file @
fce23741
...
...
@@ -247,7 +247,7 @@ OpenSLLayer::engineServiceRing(bool waiting) {
void
OpenSLLayer
::
engineServiceRec
(
bool
/* waiting */
)
{
//
playCv.notify_one();
playCv
.
notify_one
();
recCv
.
notify_one
();
return
;
}
...
...
@@ -334,7 +334,7 @@ OpenSLLayer::startAudioCapture()
recThread
=
std
::
thread
([
&
]()
{
std
::
unique_lock
<
std
::
mutex
>
lck
(
recMtx
);
while
(
recorder_
)
{
recCv
.
wait
(
lck
);
recCv
.
wait
_for
(
lck
,
std
::
chrono
::
seconds
(
1
)
);
if
(
not
recorder_
)
break
;
sample_buf
*
buf
;
...
...
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