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
7813b8bc
Commit
7813b8bc
authored
12 years ago
by
Boris Grozev
Browse files
Options
Downloads
Patches
Plain Diff
Renames SILK-related properties.
parent
c0d82224
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/org/jitsi/impl/neomedia/MediaUtils.java
+1
-7
1 addition, 7 deletions
src/org/jitsi/impl/neomedia/MediaUtils.java
src/org/jitsi/impl/neomedia/codec/audio/silk/JavaEncoder.java
+6
-9
6 additions, 9 deletions
...org/jitsi/impl/neomedia/codec/audio/silk/JavaEncoder.java
with
7 additions
and
16 deletions
src/org/jitsi/impl/neomedia/MediaUtils.java
+
1
−
7
View file @
7813b8bc
...
...
@@ -169,7 +169,7 @@ public class MediaUtils
boolean
advertiseFEC
=
cfg
.
getBoolean
(
"net.java.sip.communicator.impl.neomedia"
+
".codec.audio.silk.
encoder.advertisefec
"
,
false
);
".codec.audio.silk.
ADVERTISE_FEC
"
,
false
);
Map
<
String
,
String
>
silkFormatParams
=
new
HashMap
<
String
,
String
>();
if
(
advertiseFEC
)
silkFormatParams
.
put
(
"useinbandfec"
,
"1"
);
...
...
@@ -181,12 +181,6 @@ public class MediaUtils
silkFormatParams
,
null
,
8000
,
12000
,
16000
,
24000
);
addMediaFormats
(
MediaFormat
.
RTP_PAYLOAD_TYPE_UNKNOWN
,
"SILK"
,
MediaType
.
AUDIO
,
Constants
.
SILK_RTP
,
8000
,
12000
,
16000
,
24000
);
addMediaFormats
(
MediaFormat
.
RTP_PAYLOAD_TYPE_UNKNOWN
,
"opus"
,
...
...
This diff is collapsed.
Click to expand it.
src/org/jitsi/impl/neomedia/codec/audio/silk/JavaEncoder.java
+
6
−
9
View file @
7813b8bc
...
...
@@ -144,15 +144,15 @@ protected void doOpen()
//TODO: we should have a default value dependent on the SDP parameters
//here.
boolean
useFEC
=
cfg
.
getBoolean
(
"net.java.sip.communicator.impl."
+
"neomedia.codec.audio.silk.encoder.
usefec
"
,
true
);
boolean
forc
ePacketLoss
=
cfg
.
getBoolean
(
"net.java.sip.communicator."
+
+
"neomedia.codec.audio.silk.encoder.
USE_FEC
"
,
true
);
boolean
assum
ePacketLoss
=
cfg
.
getBoolean
(
"net.java.sip.communicator."
+
"impl.neomedia.codec.audio.silk.encoder."
+
"
forcepacketloss
"
,
true
);
"
ALWAYS_ASSUME_PACKET_LOSS
"
,
true
);
//Update the statically defined value for "speech activity threshold"
//according to our configuration
String
satStr
=
cfg
.
getString
(
"net.java.sip.
"
+
"communicator.impl.neomedia
.codec.audio.silk.encoder.
sat
"
,
"0.5"
);
String
satStr
=
cfg
.
getString
(
"net.java.sip.
communicator.impl.neomedia"
+
"
.codec.audio.silk.encoder.
SPEECH_ACTIVITY_THRESHOLD
"
,
"0.5"
);
float
sat
=
Silk_define_FLP
.
LBRR_SPEECH_ACTIVITY_THRES
;
try
{
...
...
@@ -165,10 +165,7 @@ protected void doOpen()
encControl
.
bitRate
=
BITRATE
;
encControl
.
complexity
=
COMPLEXITY
;
encControl
.
maxInternalSampleRate
=
encControl
.
API_sampleRate
;
//At the moment we do not support dynamically setting the expected
//packet loss. Therefore to force the encoder to always expect packet
//loss we set this higher than all thresholds.
encControl
.
packetLossPercentage
=
forcePacketLoss
?
100
:
0
;
encControl
.
packetLossPercentage
=
assumePacketLoss
?
2
:
0
;
encControl
.
packetSize
=
(
int
)
((
JavaDecoder
.
FRAME_DURATION
*
sampleRate
*
channels
)
/
1000
);
...
...
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