Skip to content
Permalink
Browse files

Fixed test-case where INPUTDEVICEID and OUTPUTDEVICEID had not been i…

…nitialized
  • Loading branch information
bear101 committed Dec 12, 2019
1 parent d520b21 commit b6c45ef10109141cf6eb43cb63f400122b8b18aa
Showing with 6 additions and 2 deletions.
  1. +6 −2 Library/TeamTalkJNI/test/dk/bearware/TeamTalkTestCase.java
@@ -2778,15 +2778,19 @@ public void test_VoiceTransmitOpenCloseAudioInput() throws InterruptedException
TeamTalkBase[] ttclients = new TeamTalkBase[4];
for (int i=0;i<ttclients.length;++i) {
ttclients[i] = newClientInstance();
assertTrue(ttclients[i].initSoundOutputDevice(OUTPUTDEVICEID));
IntPtr indev = new IntPtr(), outdev = new IntPtr();
assertTrue("get default sound devices", ttclients[i].getDefaultSoundDevices(indev, outdev));
assertTrue("init output device", ttclients[i].initSoundOutputDevice(outdev.value));
connect(ttclients[i]);
login(ttclients[i], NICKNAME + "_" + i, USERNAME, PASSWORD);
joinRoot(ttclients[i]);
}

for (int i=0;i < 5; i++) {
for (TeamTalkBase ttclient : ttclients) {
assertTrue("client init sndinput", ttclient.initSoundInputDevice(INPUTDEVICEID));
IntPtr indev = new IntPtr(), outdev = new IntPtr();
assertTrue("get default sound devices", ttclient.getDefaultSoundDevices(indev, outdev));
assertTrue("client init sndinput", ttclient.initSoundInputDevice(indev.value));
assertTrue("client enable voice tx", ttclient.enableVoiceTransmission(true));
}

0 comments on commit b6c45ef

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