summaryrefslogtreecommitdiffstats
path: root/pico/compat/jni/com_android_tts_compat_SynthProxy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pico/compat/jni/com_android_tts_compat_SynthProxy.cpp')
-rw-r--r--pico/compat/jni/com_android_tts_compat_SynthProxy.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/pico/compat/jni/com_android_tts_compat_SynthProxy.cpp b/pico/compat/jni/com_android_tts_compat_SynthProxy.cpp
index c9c38c4..f410ee5 100644
--- a/pico/compat/jni/com_android_tts_compat_SynthProxy.cpp
+++ b/pico/compat/jni/com_android_tts_compat_SynthProxy.cpp
@@ -40,6 +40,11 @@
#define FILTER_GAIN 5.5f // linear gain
// android.media.AudioFormat.ENCODING_ values
+//
+// Note that these constants are different from those
+// defined in the native code (system/audio.h and others).
+// We use them because we use a Java AudioTrack to play
+// back our data.
#define AUDIO_FORMAT_ENCODING_DEFAULT 1
#define AUDIO_FORMAT_ENCODING_PCM_16_BIT 2
#define AUDIO_FORMAT_ENCODING_PCM_8_BIT 3