Skip to content
This repository was archived by the owner on Feb 25, 2024. It is now read-only.

Commit daa5f53

Browse files
committed
Update VBANPacketHead.java
1 parent eaaca1f commit daa5f53

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/de/kaleidox/vban/packet/VBANPacketHead.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package de.kaleidox.vban.packet;
22

3-
import de.kaleidox.util.Util;
43
import de.kaleidox.util.interfaces.ByteArray;
54
import de.kaleidox.vban.VBAN;
65
import de.kaleidox.vban.VBAN.Codec;
@@ -49,7 +48,9 @@ public byte[] getBytes() {
4948
return bytes;
5049
}
5150

52-
public static Factory defaultAudioProtocolFactory(int channel) {
51+
public static Factory defaultAudioProtocolFactory(int channel) throws UnsupportedOperationException {
52+
//noinspection ConstantConditions TODO Implement Serial Communication
53+
if (true) throw new UnsupportedOperationException();
5354
return VBANPacketHead.Factory.builder()
5455
.setProtocol(Protocol.AUDIO)
5556
.setChannel((byte) channel)
@@ -63,6 +64,7 @@ public static Factory defaultTextProtocolFactory() {
6364
.setChannel((byte) 0)
6465
.setSamples((byte) 0)
6566
.setStreamName("Command1")
67+
.setSampleRate(18)
6668
.build();
6769
}
6870

0 commit comments

Comments
 (0)