pull/24/head
sh123 2022-06-30 00:15:03 +03:00
rodzic f87a805e80
commit a41571eb9a
8 zmienionych plików z 8 dodań i 8 usunięć

Wyświetl plik

@ -210,7 +210,7 @@ public class AudioProcessor extends Thread {
private final Callback _protocolReceiveCallback = new Callback() {
@Override
protected void onReceivePosition(String src, String dst, double latitude, double longitude, double altitude, float bearing, String comment) {
protected void onReceivePosition(String src, double latitude, double longitude, double altitude, float bearing, String comment) {
throw new UnsupportedOperationException();
}

Wyświetl plik

@ -55,7 +55,7 @@ public class Aprs implements Protocol {
public boolean receive(Callback callback) throws IOException {
return _childProtocol.receive(new Callback() {
@Override
protected void onReceivePosition(String src, String dst, double latitude, double longitude, double altitude, float bearing, String comment) {
protected void onReceivePosition(String src, double latitude, double longitude, double altitude, float bearing, String comment) {
throw new UnsupportedOperationException();
}

Wyświetl plik

@ -59,7 +59,7 @@ public class AudioCodec2 implements Protocol {
public boolean receive(Callback callback) throws IOException {
return _childProtocol.receive(new Callback() {
@Override
protected void onReceivePosition(String src, String dst, double latitude, double longitude, double altitude, float bearing, String comment) {
protected void onReceivePosition(String src, double latitude, double longitude, double altitude, float bearing, String comment) {
throw new UnsupportedOperationException();
}

Wyświetl plik

@ -81,7 +81,7 @@ public class AudioFrameAggregator implements Protocol {
public boolean receive(Callback callback) throws IOException {
return _childProtocol.receive(new Callback() {
@Override
protected void onReceivePosition(String src, String dst, double latitude, double longitude, double altitude, float bearing, String comment) {
protected void onReceivePosition(String src, double latitude, double longitude, double altitude, float bearing, String comment) {
throw new UnsupportedOperationException();
}

Wyświetl plik

@ -71,7 +71,7 @@ public class Ax25 implements Protocol {
public boolean receive(Callback callback) throws IOException {
return _childProtocol.receive(new Callback() {
@Override
protected void onReceivePosition(String src, String dst, double latitude, double longitude, double altitude, float bearing, String comment) {
protected void onReceivePosition(String src, double latitude, double longitude, double altitude, float bearing, String comment) {
throw new UnsupportedOperationException();
}

Wyświetl plik

@ -1,7 +1,7 @@
package com.radio.codec2talkie.protocol;
public abstract class Callback {
abstract protected void onReceivePosition(String src, String dst, double latitude, double longitude, double altitude, float bearing, String comment);
abstract protected void onReceivePosition(String src, double latitude, double longitude, double altitude, float bearing, String comment);
abstract protected void onReceivePcmAudio(String src, String dst, int codec, short[] pcmFrame);
abstract protected void onReceiveCompressedAudio(String src, String dst, int codec, byte[] frame);
abstract protected void onReceiveData(String src, String dst, byte[] data);

Wyświetl plik

@ -68,7 +68,7 @@ public class Recorder implements Protocol {
public boolean receive(Callback callback) throws IOException {
return _childProtocol.receive(new Callback() {
@Override
protected void onReceivePosition(String src, String dst, double latitude, double longitude, double altitude, float bearing, String comment) {
protected void onReceivePosition(String src, double latitude, double longitude, double altitude, float bearing, String comment) {
throw new UnsupportedOperationException();
}

Wyświetl plik

@ -71,7 +71,7 @@ public class Scrambler implements Protocol {
public boolean receive(Callback callback) throws IOException {
return _childProtocol.receive(new Callback() {
@Override
protected void onReceivePosition(String src, String dst, double latitude, double longitude, double altitude, float bearing, String comment) {
protected void onReceivePosition(String src, double latitude, double longitude, double altitude, float bearing, String comment) {
throw new UnsupportedOperationException();
}