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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
4e26ed73
Commit
4e26ed73
authored
16 years ago
by
Alexandre Savard
Browse files
Options
Downloads
Patches
Plain Diff
make thread sleep during 5 ms insead of 20 (#1143)
parent
cf2b8d50
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
sflphone-common/src/audio/audiortp.cpp
+7
-3
7 additions, 3 deletions
sflphone-common/src/audio/audiortp.cpp
with
7 additions
and
3 deletions
sflphone-common/src/audio/audiortp.cpp
+
7
−
3
View file @
4e26ed73
...
...
@@ -574,7 +574,8 @@ AudioRtpRTX::run () {
int
timestamp
=
0
;
// for mic
int
countTime
=
0
;
// for receive
TimerPort
::
setTimer
(
_layerFrameSize
);
// TimerPort::setTimer(_layerFrameSize);
TimerPort
::
setTimer
(
5
);
audiolayer
->
startStream
();
_start
.
post
();
...
...
@@ -605,15 +606,18 @@ AudioRtpRTX::run () {
if
(
sessionWaiting
==
1
){
// _debug("Record TWO buffer \n");
_ca
->
recAudio
.
recData
(
spkrData
Convert
ed
,
micData
,
_nSamplesSpkr
,
_nSamplesMic
);
_ca
->
recAudio
.
recData
(
spkrData
Decod
ed
,
micData
,
_nSamplesSpkr
,
_nSamplesMic
);
}
else
{
// _debug("Record ONE buffer \n");
_ca
->
recAudio
.
recData
(
micData
,
_nSamplesMic
);
}
// Thread::sleep(TimerPort::getTimer());
// TimerPort::incTimer(_layerFrameSize); // 'frameSize' ms
Thread
::
sleep
(
TimerPort
::
getTimer
());
TimerPort
::
incTimer
(
_layerFrameSize
);
// 'frameSize' ms
TimerPort
::
incTimer
(
5
);
// 'frameSize' ms
}
...
...
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