kopia lustrzana https://github.com/sh123/codec2_talkie
Refactoring
rodzic
f87a805e80
commit
a41571eb9a
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue