Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
d19ced76
Commit
d19ced76
authored
5 years ago
by
Kateryna Kostiuk
Browse files
Options
Downloads
Patches
Plain Diff
manager: restart audio stream
Change-Id: I541e2aa1a419559c87c9f390601873bba12a0dc1
parent
ab1ee8d7
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/client/configurationmanager.cpp
+1
-1
1 addition, 1 deletion
src/client/configurationmanager.cpp
src/manager.cpp
+12
-0
12 additions, 0 deletions
src/manager.cpp
src/manager.h
+1
-0
1 addition, 0 deletions
src/manager.h
with
14 additions
and
1 deletion
src/client/configurationmanager.cpp
+
1
−
1
View file @
d19ced76
...
...
@@ -620,7 +620,7 @@ setAudioInputDevice(int32_t index)
void
startAudio
()
{
jami
::
Manager
::
instance
().
startAudioDriverStream
();
jami
::
Manager
::
instance
().
re
startAudioDriverStream
();
}
void
...
...
This diff is collapsed.
Click to expand it.
src/manager.cpp
+
12
−
0
View file @
d19ced76
...
...
@@ -2990,6 +2990,18 @@ Manager::startAudioDriverStream()
pimpl_
->
audiodriver_
->
startStream
();
}
void
Manager
::
restartAudioDriverStream
()
{
std
::
lock_guard
<
std
::
mutex
>
lock
(
pimpl_
->
audioLayerMutex_
);
if
(
!
pimpl_
->
audiodriver_
)
{
JAMI_ERR
(
"Audio driver not initialized"
);
return
;
}
pimpl_
->
audiodriver_
->
stopStream
();
pimpl_
->
audiodriver_
->
startStream
();
}
void
Manager
::
registerAccounts
()
{
...
...
This diff is collapsed.
Click to expand it.
src/manager.h
+
1
−
0
View file @
d19ced76
...
...
@@ -125,6 +125,7 @@ class Manager {
std
::
shared_ptr
<
AudioLayer
>
getAudioDriver
();
void
startAudioDriverStream
();
void
restartAudioDriverStream
();
/**
* Functions which occur with a user's action
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment