Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Morlunk/Jumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Comminos <andrewcomminos@gmail.com>2014-07-04 06:12:19 +0400
committerAndrew Comminos <andrewcomminos@gmail.com>2014-07-04 06:12:19 +0400
commitbc35443a9cfb680a45290219cd874f7fa9a5b777 (patch)
treedadf81eedb8edb169a007346d9340fc6b280a9c0
parent20f78f965b227e6c1230430580d9b41511ff2480 (diff)
Add support for dynamic half duplex toggling.
-rw-r--r--src/main/aidl/com/morlunk/jumble/IJumbleService.aidl1
-rw-r--r--src/main/java/com/morlunk/jumble/JumbleService.java5
2 files changed, 6 insertions, 0 deletions
diff --git a/src/main/aidl/com/morlunk/jumble/IJumbleService.aidl b/src/main/aidl/com/morlunk/jumble/IJumbleService.aidl
index ed74c57..680ebff 100644
--- a/src/main/aidl/com/morlunk/jumble/IJumbleService.aidl
+++ b/src/main/aidl/com/morlunk/jumble/IJumbleService.aidl
@@ -66,6 +66,7 @@ interface IJumbleService {
void setTransmitMode(int transmitMode);
void setVADThreshold(float threshold);
void setAmplitudeBoost(float boost);
+ void setHalfDuplex(boolean enabled);
int getCodec();
// Bluetooth
diff --git a/src/main/java/com/morlunk/jumble/JumbleService.java b/src/main/java/com/morlunk/jumble/JumbleService.java
index 20c0527..1bcd985 100644
--- a/src/main/java/com/morlunk/jumble/JumbleService.java
+++ b/src/main/java/com/morlunk/jumble/JumbleService.java
@@ -690,6 +690,11 @@ public class JumbleService extends Service implements JumbleConnection.JumbleCon
}
@Override
+ public void setHalfDuplex(boolean enabled) throws RemoteException {
+ mAudioHandler.setHalfDuplex(enabled);
+ }
+
+ @Override
public int getCodec() throws RemoteException {
return mConnection.getCodec();
}