Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
3ce3a5cc
Commit
3ce3a5cc
authored
Jun 07, 2017
by
Sylvain Berfini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added microVu on conference + updated linphone to fix conference pause/resume
parent
b0350122
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
2 deletions
+55
-2
ConferenceModel.cpp
...one-desktop/src/components/conference/ConferenceModel.cpp
+24
-0
ConferenceModel.hpp
...one-desktop/src/components/conference/ConferenceModel.hpp
+3
-0
Conference.qml
linphone-desktop/ui/views/App/Calls/Conference.qml
+28
-2
No files found.
linphone-desktop/src/components/conference/ConferenceModel.cpp
View file @
3ce3a5cc
...
@@ -116,6 +116,30 @@ bool ConferenceModel::getRecording () const {
...
@@ -116,6 +116,30 @@ bool ConferenceModel::getRecording () const {
return
mRecording
;
return
mRecording
;
}
}
// -----------------------------------------------------------------------------
#define VU_MIN (-20.f)
#define VU_MAX (4.f)
inline
float
computeVu
(
float
volume
)
{
if
(
volume
<
VU_MIN
)
return
0.
f
;
if
(
volume
>
VU_MAX
)
return
1.
f
;
return
(
volume
-
VU_MIN
)
/
(
VU_MAX
-
VU_MIN
);
}
#undef VU_MIN
#undef VU_MAX
float
ConferenceModel
::
getMicroVu
()
const
{
shared_ptr
<
linphone
::
Core
>
core
=
CoreManager
::
getInstance
()
->
getCore
();
return
computeVu
(
core
->
getConferenceLocalInputVolume
());
}
// -----------------------------------------------------------------------------
void
ConferenceModel
::
leave
()
{
void
ConferenceModel
::
leave
()
{
shared_ptr
<
linphone
::
Core
>
core
=
CoreManager
::
getInstance
()
->
getCore
();
shared_ptr
<
linphone
::
Core
>
core
=
CoreManager
::
getInstance
()
->
getCore
();
core
->
leaveConference
();
core
->
leaveConference
();
...
...
linphone-desktop/src/components/conference/ConferenceModel.hpp
View file @
3ce3a5cc
...
@@ -35,6 +35,8 @@ class ConferenceModel : public QSortFilterProxyModel {
...
@@ -35,6 +35,8 @@ class ConferenceModel : public QSortFilterProxyModel {
Q_PROPERTY
(
int
count
READ
getCount
NOTIFY
countChanged
);
Q_PROPERTY
(
int
count
READ
getCount
NOTIFY
countChanged
);
Q_PROPERTY
(
bool
microMuted
READ
getMicroMuted
WRITE
setMicroMuted
NOTIFY
microMutedChanged
);
Q_PROPERTY
(
bool
microMuted
READ
getMicroMuted
WRITE
setMicroMuted
NOTIFY
microMutedChanged
);
Q_PROPERTY
(
float
microVu
READ
getMicroVu
CONSTANT
);
Q_PROPERTY
(
bool
recording
READ
getRecording
NOTIFY
recordingChanged
);
Q_PROPERTY
(
bool
recording
READ
getRecording
NOTIFY
recordingChanged
);
Q_PROPERTY
(
bool
isInConf
READ
isInConference
NOTIFY
conferenceChanged
);
Q_PROPERTY
(
bool
isInConf
READ
isInConference
NOTIFY
conferenceChanged
);
...
@@ -67,6 +69,7 @@ private:
...
@@ -67,6 +69,7 @@ private:
bool
getMicroMuted
()
const
;
bool
getMicroMuted
()
const
;
void
setMicroMuted
(
bool
status
);
void
setMicroMuted
(
bool
status
);
float
getMicroVu
()
const
;
bool
isInConference
()
const
;
bool
isInConference
()
const
;
...
...
linphone-desktop/ui/views/App/Calls/Conference.qml
View file @
3ce3a5cc
...
@@ -189,14 +189,40 @@ Rectangle {
...
@@ -189,14 +189,40 @@ Rectangle {
Layout.fillWidth
:
true
Layout.fillWidth
:
true
Layout.preferredHeight
:
CallStyle
.
actionArea
.
height
Layout.preferredHeight
:
CallStyle
.
actionArea
.
height
Row
Layout
{
Grid
Layout
{
anchors
{
anchors
{
left
:
parent
.
left
left
:
parent
.
left
leftMargin
:
CallStyle
.
actionArea
.
leftButtonsGroupMargin
leftMargin
:
CallStyle
.
actionArea
.
leftButtonsGroupMargin
verticalCenter
:
parent
.
verticalCenter
verticalCenter
:
parent
.
verticalCenter
}
}
spacing
:
ActionBarStyle
.
spacing
columns
:
incall
.
width
<
CallStyle
.
actionArea
.
lowWidth
?
2
:
4
rowSpacing
:
ActionBarStyle
.
spacing
Row
{
spacing
:
CallStyle
.
actionArea
.
vu
.
spacing
VuMeter
{
Timer
{
interval
:
50
repeat
:
true
running
:
micro
.
enabled
onTriggered
:
parent
.
value
=
conference
.
conferenceModel
.
microVu
}
enabled
:
micro
.
enabled
}
ActionSwitch
{
id
:
micro
icon
:
'
micro
'
iconSize
:
CallStyle
.
actionArea
.
iconSize
onClicked
:
conference
.
conferenceModel
.
microMuted
=
!
conference
.
conferenceModel
.
microMuted
}
}
}
}
ActionBar
{
ActionBar
{
...
...
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