Skip to content

Commit

Permalink
Fixed test-case where INPUTDEVICEID and OUTPUTDEVICEID had not been i…
Browse files Browse the repository at this point in the history
…nitialized
  • Loading branch information
bear101 committed Dec 12, 2019
1 parent d520b21 commit b6c45ef
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Library/TeamTalkJNI/test/dk/bearware/TeamTalkTestCase.java
Expand Up @@ -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));
}

Expand Down

0 comments on commit b6c45ef

Please sign in to comment.