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
acb099f9
Commit
acb099f9
authored
Jun 11, 2010
by
Alexandre Savard
Browse files
[#3507] Add DelayDetection classes
parent
0faf8c72
Changes
4
Hide whitespace changes
Inline
Side-by-side
sflphone-common/src/audio/Makefile.am
View file @
acb099f9
...
@@ -12,6 +12,7 @@ libaudio_la_SOURCES = \
...
@@ -12,6 +12,7 @@ libaudio_la_SOURCES = \
audiolayer.cpp
\
audiolayer.cpp
\
audiodevice.cpp
\
audiodevice.cpp
\
samplerateconverter.cpp
\
samplerateconverter.cpp
\
delaydetection.cpp
\
echocancel.cpp
\
echocancel.cpp
\
speexechocancel.cpp
\
speexechocancel.cpp
\
audioprocessing.cpp
\
audioprocessing.cpp
\
...
@@ -27,7 +28,8 @@ noinst_HEADERS = \
...
@@ -27,7 +28,8 @@ noinst_HEADERS = \
mainbuffer.h
\
mainbuffer.h
\
recordable.h
\
recordable.h
\
algorithm.h
\
algorithm.h
\
echocancel.h
delaydetection.h
\
echocancel.h
\
speexechocancel.h
\
speexechocancel.h
\
audioprocessing.h
\
audioprocessing.h
\
dcblocker.h
\
dcblocker.h
\
...
...
sflphone-common/src/audio/delaydetection.cpp
0 → 100644
View file @
acb099f9
/*
* Copyright (C) 2004, 2005, 2006, 2009, 2008, 2009, 2010 Savoir-Faire Linux Inc.
* Author: Alexandre Savard <alexandre.savard@savoirfairelinux.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* Additional permission under GNU GPL version 3 section 7:
*
* If you modify this program, or any covered work, by linking or
* combining it with the OpenSSL project's OpenSSL library (or a
* modified version of that library), containing parts covered by the
* terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
* grants you additional permission to convey the resulting work.
* Corresponding Source for a non-source form of such a combination
* shall include the source code for the parts of OpenSSL used as well
* as that of the covered work.
*/
#include "delaydetection.h"
DelayDetection
::
DelayDetection
(){}
DelayDetection
::~
DelayDetection
(){}
void
DelayDetection
::
reset
()
{}
void
DelayDetection
::
putData
(
SFLDataFormat
*
inputData
,
int
nbBytes
)
{}
int
DelayDetection
::
getData
(
SFLDataFormat
*
outputData
)
{
return
0
;
}
void
DelayDetection
::
process
(
SFLDataFormat
*
inputData
,
int
nbBytes
)
{}
int
DelayDetection
::
process
(
SFLDataFormat
*
intputData
,
SFLDataFormat
*
outputData
,
int
nbBytes
)
{
return
0
;
}
void
DelayDetection
::
process
(
SFLDataFormat
*
micData
,
SFLDataFormat
*
spkrData
,
SFLDataFormat
*
outputData
,
int
nbBytes
)
{}
sflphone-common/src/audio/delaydetection.h
0 → 100644
View file @
acb099f9
/*
* Copyright (C) 2004, 2005, 2006, 2009, 2008, 2009, 2010 Savoir-Faire Linux Inc.
* Author: Alexandre Savard <alexandre.savard@savoirfairelinux.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* Additional permission under GNU GPL version 3 section 7:
*
* If you modify this program, or any covered work, by linking or
* combining it with the OpenSSL project's OpenSSL library (or a
* modified version of that library), containing parts covered by the
* terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
* grants you additional permission to convey the resulting work.
* Corresponding Source for a non-source form of such a combination
* shall include the source code for the parts of OpenSSL used as well
* as that of the covered work.
*/
#ifndef DELAYDETECTION_H
#define DELAYDETECTION_H
#include "algorithm.h"
class
DelayDetection
:
public
Algorithm
{
public:
DelayDetection
();
~
DelayDetection
();
virtual
void
reset
(
void
);
virtual
void
putData
(
SFLDataFormat
*
inputData
,
int
nbBytes
);
virtual
int
getData
(
SFLDataFormat
*
getData
);
virtual
void
process
(
SFLDataFormat
*
inputData
,
int
nbBytes
);
virtual
int
process
(
SFLDataFormat
*
inputData
,
SFLDataFormat
*
outputData
,
int
nbBytes
);
virtual
void
process
(
SFLDataFormat
*
micData
,
SFLDataFormat
*
spkrData
,
SFLDataFormat
*
outputData
,
int
nbBytes
);
private:
};
#endif
sflphone-common/test/Makefile.am
View file @
acb099f9
...
@@ -27,7 +27,9 @@ test_SOURCES = main.cpp \
...
@@ -27,7 +27,9 @@ test_SOURCES = main.cpp \
rtptest.h
\
rtptest.h
\
rtptest.cpp
\
rtptest.cpp
\
sdesnegotiatortest.h
\
sdesnegotiatortest.h
\
sdesnegotiatortest.cpp
sdesnegotiatortest.cpp
\
delaydetectiontest.h
\
delaydetectiontest.cpp
...
@@ -68,4 +70,5 @@ LLIBS=$(CPPUNIT_LIBS) \
...
@@ -68,4 +70,5 @@ LLIBS=$(CPPUNIT_LIBS) \
../src/plug-in/pluginmanager.o
\
../src/plug-in/pluginmanager.o
\
../src/plug-in/audiorecorder/audiorecord.o
\
../src/plug-in/audiorecorder/audiorecord.o
\
../src/audio/samplerateconverter.o
\
../src/audio/samplerateconverter.o
\
../src/history/historymanager.o
../src/audio/delaydetection.o
\
\ No newline at end of file
../src/history/historymanager.o
\ No newline at end of file
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