aboutsummaryrefslogtreecommitdiffstats
path: root/android
diff options
context:
space:
mode:
authorRubbaBoy <[email protected]>2020-07-06 02:33:28 -0400
committerPhil Burk <[email protected]>2020-10-30 11:19:34 -0700
commit46888fae6eb7b1dd386f7af7d101ead99ae61981 (patch)
tree8969bbfd68d2fb5c0d8b86da49ec2eca230a72ab /android
parentc51e92e813dd481603de078f0778e1f75db2ab05 (diff)
Restructured project, added gradle, JUnit, logger, and more
Added Gradle (and removed ant), modernized testing via the JUnit framework, moved standalone examples from the tests directory to a separate module, removed sparsely used Java logger and replaced it with SLF4J. More work could be done, however this is a great start to greatly improving the health of the codebase.
Diffstat (limited to 'android')
-rw-r--r--android/README.md2
-rw-r--r--android/com/jsyn/devices/android/AndroidAudioForJSyn.java4
2 files changed, 4 insertions, 2 deletions
diff --git a/android/README.md b/android/README.md
new file mode 100644
index 0000000..95a6a56
--- /dev/null
+++ b/android/README.md
@@ -0,0 +1,2 @@
+I'm not quite sure where to place this file. This has Android dependencies and from what I can tell was previously floating in this unrelated folder named `android`. From what I can tell, the intent is to place this class into your Android project when using it.
+
diff --git a/android/com/jsyn/devices/android/AndroidAudioForJSyn.java b/android/com/jsyn/devices/android/AndroidAudioForJSyn.java
index 3aba1e4..20bbb68 100644
--- a/android/com/jsyn/devices/android/AndroidAudioForJSyn.java
+++ b/android/com/jsyn/devices/android/AndroidAudioForJSyn.java
@@ -84,9 +84,9 @@ public class AndroidAudioForJSyn implements AudioDeviceManager {
minBufferSize = AudioTrack.getMinBufferSize(frameRate,
AudioFormat.CHANNEL_OUT_STEREO,
AudioFormat.ENCODING_PCM_FLOAT);
- System.out.println("Audio minBufferSize = " + minBufferSize);
+ LOGGER.debug("Audio minBufferSize = " + minBufferSize);
bufferSize = (3 * (minBufferSize / 2)) & ~3;
- System.out.println("Audio bufferSize = " + bufferSize);
+ LOGGER.debug("Audio bufferSize = " + bufferSize);
audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, frameRate,
AudioFormat.CHANNEL_OUT_STEREO,
AudioFormat.ENCODING_PCM_FLOAT, bufferSize,