This repository was archived by the owner on Feb 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed
src/test/java/de/kaleidox/test/vban Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 1- # VBAN-API [ ![ Build Status] ( https://travis-ci.com/burdoto/VBAN-API.svg?branch=master )] ( https://travis-ci.com/burdoto/VBAN-API ) [ ![ Maven Central] ( https://maven-badges.herokuapp.com/maven-central/de.kaleidox/vban-api/badge.svg )] ( https://maven-badges.herokuapp.com/maven-central/de.kaleidox/vban-api )
1+ # VBAN-API [ ![ Build Status] ( https://travis-ci.com/burdoto/VBAN-API.svg?branch=master )] ( https://travis-ci.com/burdoto/VBAN-API ) [ ![ Maven Central Release ] ( https://maven-badges.herokuapp.com/maven-central/de.kaleidox/vban-api/badge.svg )] ( https://maven-badges.herokuapp.com/maven-central/de.kaleidox/vban-api ) [ ![ Development Release ] ( https://jitpack.io/v/burdoto/VBAN-API.svg )] ( https://jitpack.io/#burdoto/VBAN-API )
22API for the known VB-Audio VBAN Network interface
33
44
Original file line number Diff line number Diff line change 11package de .kaleidox .test .vban ;
22
33import java .io .IOException ;
4- import java .net .InetAddress ;
54import java .nio .charset .StandardCharsets ;
65
76import de .kaleidox .vban .VBAN ;
87
9- public class ConnectionTest {
10- public static void main (String [] args ) throws IOException {
11- VBAN <String > vban = VBAN .openTextStream (InetAddress .getLocalHost (), VBAN .DEFAULT_PORT );
12-
13- vban .writeFlush ("bus(0).mute=1" .getBytes (StandardCharsets .UTF_8 ));
8+ import static java .net .InetAddress .getLocalHost ;
9+ import static de .kaleidox .vban .VBAN .DEFAULT_PORT ;
1410
15- vban .sendData ("bus(1).mute=0" );
11+ public class ConnectionTest {
12+ public static void main (String [] args ) {
13+ try (VBAN <String > vban = VBAN .openTextStream (getLocalHost (), DEFAULT_PORT )) {
14+ int i = 0 ;
15+ while (i ++ < 10 ) {
16+ vban .writeFlush ("bus(0).mute=1" .getBytes (StandardCharsets .UTF_8 ));
17+ Thread .sleep (500 );
18+ vban .sendData ("bus(0).mute=0" );
19+ Thread .sleep (500 );
20+ }
21+ } catch (InterruptedException | IOException e ) {
22+ e .printStackTrace ();
23+ }
1624 }
1725}
You can’t perform that action at this time.
0 commit comments