Skip to content
Permalink
Browse files

Unit-test of AGC/denoise on ARMv7A. Updated documentation.

  • Loading branch information...
bear101 committed Nov 2, 2019
1 parent 2d7927e commit 119889c6351df874f01336edff3cf689a8d33aa6
@@ -223,6 +223,42 @@ public void test_MultiClientOnSharedAudioDevice() {
}
}

public void test_SpeexDSP() {

String USERNAME = "tt_test", PASSWORD = "tt_test", NICKNAME = "jUnit - " + getCurrentMethod();
int USERRIGHTS = UserRight.USERRIGHT_VIEW_ALL_USERS;
makeUserAccount(NICKNAME, USERNAME, PASSWORD, USERRIGHTS);

TeamTalkBase ttclient = newClientInstance();
initSound(ttclient);

// setup echo cancellation
SpeexDSP spxdsp = new SpeexDSP(true);
spxdsp.bEnableAGC = true;
spxdsp.bEnableDenoise = true;
spxdsp.nMaxNoiseSuppressDB = -30;
assertTrue("SpeexDSP", ttclient.setSoundInputPreprocess(spxdsp));

TTMessage msg = new TTMessage();

connect(ttclient);
login(ttclient, NICKNAME, USERNAME, PASSWORD);

assertTrue("join root", ttclient.doJoinChannelByID(ttclient.getRootChannelID(), "") > 0);

assertTrue("Wait for AGC error on ARMv7A", waitForEvent(ttclient, ClientEvent.CLIENTEVENT_INTERNAL_ERROR, 1000));

assertTrue("Leave channel", waitCmdSuccess(ttclient, ttclient.doLeaveChannel(), DEF_WAIT));

spxdsp.bEnableAGC = false;
assertTrue("SpeexDSP", ttclient.setSoundInputPreprocess(spxdsp));

assertTrue("join root", ttclient.doJoinChannelByID(ttclient.getRootChannelID(), "") > 0);

assertFalse("No AGC error on ARMv7A", waitForEvent(ttclient, ClientEvent.CLIENTEVENT_INTERNAL_ERROR, 1000));
}


public void test_EnableAudioBlock() {
super.test_AudioBlock();
}
Submodule toolchain updated 2 files
+25 −15 build/Makefile
+27 −7 toolchain.sh
@@ -995,8 +995,9 @@ extern "C" {
* @a nGainLevel, @a nMaxIncDBSec, @a nMaxDecDBSec and @a
* nMaxGainDB.
*
* Since TeamTalk version 5.2.0.4742 AGC is also supported on
* ARM architectures. */
* Note that AGC is not supported on 32-bit ARM (iOS and
* Android), since there's no fixed point implementation of
* AGC in SpeexDSP. */
TTBOOL bEnableAGC;
/** @brief A value from 0 to 32768. Default is 8000.
* Value is ignored if @a bEnableAGC is FALSE. */

0 comments on commit 119889c

Please sign in to comment.
You can’t perform that action at this time.