Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libjitsi
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ZRTP
libjitsi
Commits
8b220cff
Commit
8b220cff
authored
11 years ago
by
Vincent Lucas
Browse files
Options
Downloads
Patches
Plain Diff
Falls back to software volume settings when the volume of current input device can nt be changed.
parent
45735846
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/org/jitsi/impl/neomedia/HardwareVolumeControl.java
+8
-1
8 additions, 1 deletion
src/org/jitsi/impl/neomedia/HardwareVolumeControl.java
with
8 additions
and
1 deletion
src/org/jitsi/impl/neomedia/HardwareVolumeControl.java
+
8
−
1
View file @
8b220cff
...
@@ -214,6 +214,13 @@ protected float getInputDeviceVolume(String deviceUID)
...
@@ -214,6 +214,13 @@ protected float getInputDeviceVolume(String deviceUID)
public
float
getVolume
()
public
float
getVolume
()
{
{
String
deviceUID
=
getCaptureDeviceUID
();
String
deviceUID
=
getCaptureDeviceUID
();
return
this
.
getInputDeviceVolume
(
deviceUID
);
float
volume
=
this
.
getInputDeviceVolume
(
deviceUID
);
// If the hardware voume for this device is not available, then switch
// to the software volume.
if
(
volume
==
-
1
)
{
volume
=
super
.
getVolume
();
}
return
volume
;
}
}
}
}
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