Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
467a62fd
Commit
467a62fd
authored
Jun 04, 2010
by
Alexandre Savard
Browse files
[#3487] Used filtered data to feed echo canceller ...
parent
cfe4d928
Changes
2
Hide whitespace changes
Inline
Side-by-side
sflphone-common/src/audio/echocancel.cpp
View file @
467a62fd
...
...
@@ -323,7 +323,7 @@ void EchoCancel::performEchoCancel(SFLDataFormat *micData, SFLDataFormat *spkrDa
updateEchoCancel
(
micData
+
(
k
*
_smplPerSeg
),
spkrData
+
(
k
*
_smplPerSeg
));
_spkrLevel
=
getMaxAmplitude
(
_avgSpkrLevelHist
,
_spkrHistoryLength
);
_micLevel
=
getMaxAmplitude
(
_avgMicLevelHist
,
_micHistoryLength
)
/
2
;
_micLevel
=
getMaxAmplitude
(
_avgMicLevelHist
,
_micHistoryLength
)
/
6
;
// _debug("_spkrLevel: (max): %d", _spkrLevel);
// _debug("_micLevel: (min): %d", _micLevel);
...
...
sflphone-common/src/audio/pulseaudio/pulselayer.cpp
View file @
467a62fd
...
...
@@ -987,7 +987,7 @@ void PulseLayer::readFromMic (void)
_audiofilter
->
processAudio
((
SFLDataFormat
*
)
data
,
filter_out
,
r
);
// echo cancellation processing
int
sampleready
=
_echoCanceller
->
processAudio
((
SFLDataFormat
*
)
data
,
echoCancelledMic
,
r
);
int
sampleready
=
_echoCanceller
->
processAudio
((
SFLDataFormat
*
)
filter_out
,
echoCancelledMic
,
r
);
// no resampling required
getMainBuffer
()
->
putData
(
echoCancelledMic
,
sampleready
*
sizeof
(
SFLDataFormat
),
100
);
...
...
Write
Preview
Supports
Markdown
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